From e885b1f535e9d3108ea36f347b05eb0fe6488374 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 22:31:58 +0530 Subject: [PATCH] fix: set userId integer --- server/src/models/Robot.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index e3a5cae4..d2dbca67 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -19,7 +19,7 @@ interface RobotWorkflow { interface RobotAttributes { id: string; - userId?: string; + userId?: number; recording_meta: RobotMeta; recording: RobotWorkflow; google_sheet_email?: string | null; @@ -33,7 +33,7 @@ interface RobotCreationAttributes extends Optional { } class Robot extends Model implements RobotAttributes { public id!: string; - public userId!: string; + public userId!: number; public recording_meta!: RobotMeta; public recording!: RobotWorkflow; public google_sheet_email!: string | null; @@ -51,7 +51,7 @@ Robot.init( primaryKey: true, }, userId: { - type: DataTypes.UUID, + type: DataTypes.INTEGER, allowNull: false, }, recording_meta: {