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;
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ export class OIDCManager {
|
||||
username,
|
||||
email: userinfo.email ?? "",
|
||||
displayName: userinfo.name ?? username,
|
||||
profilePicture: profilePictureId,
|
||||
profilePictureObjectId: profilePictureId,
|
||||
admin: isAdmin,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user