Fix weight issue

This commit is contained in:
2025-04-22 18:12:40 +03:00
parent d62b2ad86d
commit ebe6d8eb97
2 changed files with 2 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import {
pgTable, pgTable,
text, text,
integer, integer,
customType, numeric,
timestamp, timestamp,
jsonb, jsonb,
} from "drizzle-orm/pg-core"; } from "drizzle-orm/pg-core";
@@ -15,7 +15,7 @@ export const users = pgTable("users", {
city: text("city"), city: text("city"),
country: text("country"), country: text("country"),
sex: text("sex"), sex: text("sex"),
weight: integer("weight"), weight: numeric("weight"),
createdAt: timestamp("created_at").notNull().defaultNow(), createdAt: timestamp("created_at").notNull().defaultNow(),
}); });

View File

@@ -10,7 +10,6 @@ const hasEnoughScope = (scope: string) => {
export default defineOAuthStravaEventHandler({ export default defineOAuthStravaEventHandler({
config: { config: {
scope: [requiredScope.join(",")], scope: [requiredScope.join(",")],
approvalPrompt: "force",
}, },
onSuccess: async (event, auth) => { onSuccess: async (event, auth) => {
const query = getQuery(event); const query = getQuery(event);