Fix for error list null check

This commit is contained in:
Dum 2026-03-02 10:05:02 +05:30
parent cd6704eafb
commit 82400799ce

View file

@ -12,6 +12,13 @@ export default defineEventHandler(async event => {
},
});
if (!listInfo) {
throw createError({
statusCode: 404,
message: 'List not found',
});
}
if (!listInfo.public) {
return createError({
statusCode: 403,