fix: various fixes

This commit is contained in:
DecDuck
2025-05-30 10:29:55 +10:00
parent fca85633c1
commit 83a9b22d82
7 changed files with 21 additions and 17 deletions

View File

@ -18,7 +18,7 @@ export default defineEventHandler(async (h3) => {
throw createError({
statusCode: 404,
});
else if (result.userId !== userId)
if (result.userId !== userId)
throw createError({
statusCode: 404,
});

View File

@ -18,7 +18,7 @@ export default defineEventHandler(async (h3) => {
throw createError({
statusCode: 404,
});
else if (result.userId !== userId)
if (result.userId !== userId)
throw createError({
statusCode: 404,
});