diff --git a/src/components/pages/files/bulk.tsx b/src/components/pages/files/bulk.tsx
index 3e8e27e5..5bf58130 100755
--- a/src/components/pages/files/bulk.tsx
+++ b/src/components/pages/files/bulk.tsx
@@ -48,6 +48,7 @@ export async function bulkDelete(ids: string[], setSelectedFiles: (files: File[]
icon: ,
id: 'bulk-delete',
autoClose: true,
+ loading: false,
});
} else if (data) {
notifications.update({
@@ -107,6 +108,7 @@ export async function bulkFavorite(ids: string[]) {
icon: ,
id: 'bulk-favorite',
autoClose: true,
+ loading: false,
});
} else if (data) {
notifications.update({
@@ -116,6 +118,7 @@ export async function bulkFavorite(ids: string[]) {
icon: ,
id: 'bulk-favorite',
autoClose: true,
+ loading: false,
});
}
diff --git a/src/server/routes/api/user/files/transaction.ts b/src/server/routes/api/user/files/transaction.ts
index 46f8c38f..4fd661ff 100755
--- a/src/server/routes/api/user/files/transaction.ts
+++ b/src/server/routes/api/user/files/transaction.ts
@@ -78,7 +78,7 @@ export default fastifyPlugin(
return res.send(resp);
}
- if (favorite) {
+ if (typeof favorite === 'boolean') {
const resp = await prisma.file.updateMany({
where: {
id: {
@@ -87,7 +87,7 @@ export default fastifyPlugin(
},
data: {
- favorite: favorite ?? false,
+ favorite: favorite,
},
});