From ebe6d8eb978e47e5c75f99317c6a0154f64a0e3f Mon Sep 17 00:00:00 2001 From: Marios Antonoudiou Date: Tue, 22 Apr 2025 18:12:40 +0300 Subject: [PATCH] Fix weight issue --- server/database/schema.ts | 4 ++-- server/routes/auth/strava.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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);