From bbffd90e84e6485dfc8d4d03c04f2ace1d6ce0f3 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 20:38:37 +0530 Subject: [PATCH] feat: remove associations --- server/src/models/Robot.ts | 8 ++++---- server/src/models/User.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index 41e974f9..b419fe8f 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -84,9 +84,9 @@ Robot.init( } ); -Robot.hasMany(Run, { - foreignKey: 'robotId', - as: 'runs', // Alias for the relation -}); +// Robot.hasMany(Run, { +// foreignKey: 'robotId', +// as: 'runs', // Alias for the relation +// }); export default Robot; \ No newline at end of file diff --git a/server/src/models/User.ts b/server/src/models/User.ts index f7c22b5b..2bb465d2 100644 --- a/server/src/models/User.ts +++ b/server/src/models/User.ts @@ -80,9 +80,9 @@ User.init( } ); -User.hasMany(Robot, { - foreignKey: 'userId', - as: 'robots', // Alias for the relation - }); +// User.hasMany(Robot, { +// foreignKey: 'userId', +// as: 'robots', // Alias for the relation +// }); export default User;