Remove unused vault resolver argument (#2113)
This commit is contained in:
parent
a1a8b286e7
commit
e94a231192
@ -2,20 +2,10 @@ import { E_VAULT_KEY_EXISTS, GqlAuthenticationError, GqlInputError } from '@/lib
|
||||
|
||||
export default {
|
||||
Query: {
|
||||
getVaultEntries: async (parent, { keysFilter }, { me, models }, info) => {
|
||||
getVaultEntries: async (parent, args, { me, models }) => {
|
||||
if (!me) throw new GqlAuthenticationError()
|
||||
|
||||
const entries = await models.vaultEntry.findMany({
|
||||
where: {
|
||||
userId: me.id,
|
||||
key: keysFilter?.length
|
||||
? {
|
||||
in: keysFilter
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
})
|
||||
return entries
|
||||
return await models.vaultEntry.findMany({ where: { userId: me.id } })
|
||||
}
|
||||
},
|
||||
Mutation: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user