Skip to content

Commit

Permalink
fixed sql syntax
Browse files Browse the repository at this point in the history
fixed sql syntax
  • Loading branch information
e11sy committed Oct 23, 2023
1 parent a4d6340 commit 3e7fc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/utils/insert-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function insertUsers(db: SequelizeOrm): Promise<void> {
*/
async function insertUserSessions(db: SequelizeOrm): Promise<void> {
for (const userSession of userSessions) {
await db.connection.query(`INSERT INTO public.userSessions (id, user_id, refresh_token, refresh_token_expires_at) VALUES (${userSession.id}, ${userSession.user_id}, ${userSession.refresh_tocken}, ${userSession.refresh_tocken_expites_at})`);
await db.connection.query(`INSERT INTO public.user_sessions (id, user_id, refresh_token, refresh_token_expires_at) VALUES (${userSession.id}, ${userSession.user_id}, ${userSession.refresh_tocken}, ${userSession.refresh_tocken_expites_at})`);
}
}
/**
Expand Down

0 comments on commit 3e7fc8f

Please sign in to comment.