Remove unused vault resolver argument (#2113)

This commit is contained in:
ekzyis 2025-04-18 14:29:47 +02:00 committed by GitHub
parent a1a8b286e7
commit e94a231192
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: {