mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 15:52:39 +10:00
feat: finish migrating to new objectid naming
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user