We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e64db commit 90c0d69Copy full SHA for 90c0d69
packages/core/src/queries/oidc-model-instance.ts
@@ -91,8 +91,9 @@ export const createOidcModelInstanceQueries = (pool: CommonQueryMethods) => {
91
if (results.length > 1) {
92
// Delete all duplicates
93
await pool.query(sql`
94
- delete from ${sql.identifier([modelName])}
95
- where ${fields.payload}->>${field}=${value}
+ delete from ${table}
+ where ${fields.modelName}=${modelName}
96
+ and ${fields.payload}->>${field}=${value}
97
`);
98
return;
99
}
0 commit comments