Files
automatisch/packages/backend/src/graphql/mutations/delete-app-auth-client.ee.js
2024-01-04 18:04:54 +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;