chore: remove delete-connection mutation

This commit is contained in:
Ali BARIN
2024-08-29 09:26:24 +02:00
parent 990e69143d
commit 59278378e5
5 changed files with 0 additions and 30 deletions
@@ -1,15 +0,0 @@
const deleteConnection = async (_parent, params, context) => {
context.currentUser.can('delete', 'Connection');
await context.currentUser
.$relatedQuery('connections')
.delete()
.findOne({
id: params.input.id,
})
.throwIfNotFound();
return;
};
export default deleteConnection;