Fix weight issue
This commit is contained in:
@@ -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(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user