fix local dev missing snl row

This commit is contained in:
keyan 2024-06-03 16:55:03 -05:00
parent c90eb055c7
commit 061d3f220d
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
export default {
Query: {
snl: async (parent, _, { models }) => {
const { live } = await models.snl.findFirst()
return live
const snl = await models.snl.findFirst()
return !!snl?.live
}
},
Mutation: {