diff --git a/server/database/schema.ts b/server/database/schema.ts index 35c0dc5..52eddda 100644 --- a/server/database/schema.ts +++ b/server/database/schema.ts @@ -3,7 +3,7 @@ import { pgTable, text, integer, - customType, + numeric, timestamp, jsonb, } from "drizzle-orm/pg-core"; @@ -15,7 +15,7 @@ export const users = pgTable("users", { city: text("city"), country: text("country"), sex: text("sex"), - weight: integer("weight"), + weight: numeric("weight"), createdAt: timestamp("created_at").notNull().defaultNow(), }); diff --git a/server/routes/auth/strava.ts b/server/routes/auth/strava.ts index c966b61..12e7f73 100644 --- a/server/routes/auth/strava.ts +++ b/server/routes/auth/strava.ts @@ -10,7 +10,6 @@ const hasEnoughScope = (scope: string) => { export default defineOAuthStravaEventHandler({ config: { scope: [requiredScope.join(",")], - approvalPrompt: "force", }, onSuccess: async (event, auth) => { const query = getQuery(event);