fix: don't delete entity if collection null

This commit is contained in:
Prateek Sunal
2025-07-31 17:41:36 +05:30
parent 927e1fef80
commit 19e353453b

View File

@@ -108,7 +108,7 @@ class SmartAlbumsService {
_logger.warning(
"For config ($collectionId) user does not have permission",
);
if (collection?.isDeleted ?? true) {
if (collection?.isDeleted ?? false) {
await _deleteEntry(
userId: userId,
collectionId: collectionId,