fix: remaining type issues

This commit is contained in:
DecDuck
2025-09-25 12:13:07 +10:00
parent 55878bdf5f
commit 4c9a2c681a
21 changed files with 120 additions and 136 deletions

View File

@ -42,10 +42,10 @@ export default defineEventHandler<{
await objectHandler.deleteAsSystem(imageId);
if (game.mBannerObjectId === imageId) {
game.mBannerObjectId = game.mImageLibraryObjectIds[0];
game.mBannerObjectId = game.mImageLibraryObjectIds[0] ?? "";
}
if (game.mCoverObjectId === imageId) {
game.mCoverObjectId = game.mImageLibraryObjectIds[0];
game.mCoverObjectId = game.mImageLibraryObjectIds[0] ?? "";
}
const result = await prisma.game.update({