Remove unused vault resolver (#2110)

This commit is contained in:
ekzyis 2025-04-16 22:59:28 +02:00 committed by GitHub
parent 24c90ec6c3
commit a1a8b286e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 25 deletions

View File

@ -2,18 +2,6 @@ import { E_VAULT_KEY_EXISTS, GqlAuthenticationError, GqlInputError } from '@/lib
export default {
Query: {
getVaultEntry: async (parent, { key }, { me, models }, info) => {
if (!me) throw new GqlAuthenticationError()
if (!key) throw new GqlInputError('must have key')
const k = await models.vault.findUnique({
where: {
key,
userId: me.id
}
})
return k
},
getVaultEntries: async (parent, { keysFilter }, { me, models }, info) => {
if (!me) throw new GqlAuthenticationError()

View File

@ -18,8 +18,7 @@ export default gql`
}
extend type Query {
getVaultEntry(key: String!): VaultEntry
getVaultEntries(keysFilter: [String!]): [VaultEntry!]!
getVaultEntries: [VaultEntry!]!
}
extend type Mutation {

View File

@ -11,17 +11,6 @@ export const VAULT_ENTRY_FIELDS = gql`
}
`
export const GET_VAULT_ENTRY = gql`
${VAULT_ENTRY_FIELDS}
query GetVaultEntry(
$key: String!
) {
getVaultEntry(key: $key) {
...VaultEntryFields
}
}
`
export const GET_VAULT_ENTRIES = gql`
${VAULT_ENTRY_FIELDS}
query GetVaultEntries {