Files
automatisch/packages/backend/src/graphql/mutations/delete-app-auth-client.ee.js
2023-12-28 13:53:16 +01:00

17 lines
338 B
JavaScript

import AppAuthClient from '../../models/app-auth-client';
const deleteAppAuthClient = async (_parent, params, context) => {
context.currentUser.can('delete', 'App');
await AppAuthClient.query()
.delete()
.findOne({
id: params.input.id,
})
.throwIfNotFound();
return;
};
export default deleteAppAuthClient;