Skip to content

Commit 90c0d69

Browse files
authored
fix(core): fix session relation not found error (#7717)
fix session relation not found error
1 parent f4e64db commit 90c0d69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/queries/oidc-model-instance.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ export const createOidcModelInstanceQueries = (pool: CommonQueryMethods) => {
9191
if (results.length > 1) {
9292
// Delete all duplicates
9393
await pool.query(sql`
94-
delete from ${sql.identifier([modelName])}
95-
where ${fields.payload}->>${field}=${value}
94+
delete from ${table}
95+
where ${fields.modelName}=${modelName}
96+
and ${fields.payload}->>${field}=${value}
9697
`);
9798
return;
9899
}

0 commit comments

Comments
 (0)