Skip to content

Commit ffb603a

Browse files
committed
Fix
1 parent 10c0156 commit ffb603a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/entry/actions/delete-entry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export async function deleteEntry(
9090
builder.andWhere({[`${Entry.tableName}.${EntryColumn.Scope}`]: scope});
9191
}
9292

93-
if (types) {
93+
if (types && types.length > 0) {
9494
builder.whereIn([`${Entry.tableName}.${EntryColumn.Type}`], types);
9595
}
9696
})

0 commit comments

Comments
 (0)