Use return await to catch exceptions (#6109)
So the exceptions are handled properly and filtered in sentry
This commit is contained in:
@ -17,12 +17,12 @@ export class RelationMetadataResolver {
|
||||
) {}
|
||||
|
||||
@Mutation(() => RelationMetadataDTO)
|
||||
deleteOneRelation(
|
||||
async deleteOneRelation(
|
||||
@Args('input') input: DeleteOneRelationInput,
|
||||
@AuthWorkspace() { id: workspaceId }: Workspace,
|
||||
) {
|
||||
try {
|
||||
return this.relationMetadataService.deleteOneRelation(
|
||||
return await this.relationMetadataService.deleteOneRelation(
|
||||
input.id,
|
||||
workspaceId,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user