chore: only remove if ok
Signed-off-by: blam <ben@blam.sh> Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -165,9 +165,14 @@ export class DefaultProviderDatabase implements ProviderDatabase {
|
||||
|
||||
await tx<DbRefreshStateReferencesRow>('refresh_state_references')
|
||||
.where('target_entity_ref', entityRef)
|
||||
.andWhere({ source_key: options.sourceKey })
|
||||
.delete();
|
||||
|
||||
if (ok) {
|
||||
await tx<DbRefreshStateReferencesRow>('refresh_state_references')
|
||||
.where('target_entity_ref', entityRef)
|
||||
.delete();
|
||||
|
||||
await tx<DbRefreshStateReferencesRow>(
|
||||
'refresh_state_references',
|
||||
).insert({
|
||||
|
||||
Reference in New Issue
Block a user