mirror of
https://github.com/p-stream/backend.git
synced 2026-04-21 01:52:24 +00:00
Fix for error list null check
This commit is contained in:
parent
cd6704eafb
commit
82400799ce
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue