fix Item.root resolver for anon
This commit is contained in:
parent
e1d6632445
commit
e045c46811
|
@ -1165,7 +1165,7 @@ export default {
|
||||||
FROM "Item"
|
FROM "Item"
|
||||||
${whereClause(
|
${whereClause(
|
||||||
'"Item".id = $1',
|
'"Item".id = $1',
|
||||||
`("Item"."invoiceActionState" IS NULL OR "Item"."invoiceActionState" = 'PAID' OR "Item"."userId" = ${me.id})`
|
`("Item"."invoiceActionState" IS NULL OR "Item"."invoiceActionState" = 'PAID'${me ? ` OR "Item"."userId" = ${me.id}` : ''})`
|
||||||
)}`
|
)}`
|
||||||
}, Number(item.rootId))
|
}, Number(item.rootId))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue