feat: finish migrating to new objectid naming

This commit is contained in:
Huskydog9988
2025-05-08 19:42:46 -04:00
committed by DecDuck
parent 7f7d8c8f45
commit 14f0833d17
11 changed files with 24 additions and 18 deletions

View File

@ -127,8 +127,8 @@ class NewsManager {
const article = await prisma.article.delete({
where: { id },
});
if (article.image) {
return await objectHandler.deleteAsSystem(article.image);
if (article.imageObjectId) {
return await objectHandler.deleteAsSystem(article.imageObjectId);
}
return true;
}