parent
5442d0b745
commit
b862b7c24d
@ -16,6 +16,8 @@ export const load: LayoutServerLoad = async ({ route, cookies }) => {
|
||||
? await Report.count({ where: { draft: false, status: ['none', 'review'] } })
|
||||
: null,
|
||||
adminCount: session?.permissions.adminRead() ? await Admin.count() : null,
|
||||
self: session ? await Admin.findOne({ where: { id: session.userId } }) : null
|
||||
self: session
|
||||
? JSON.parse(JSON.stringify(await Admin.findOne({ where: { id: session.userId } })))
|
||||
: null
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user