chore: remove delete-connection mutation

This commit is contained in:
Ali BARIN
2024-08-28 13:28:06 +00:00
parent 990e69143d
commit 59278378e5
5 changed files with 0 additions and 30 deletions

View File

@@ -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;