From e54360731cf0d2a5143ff2942ce3e1ab6ae7145b Mon Sep 17 00:00:00 2001 From: Zeck Li Date: Tue, 13 Oct 2020 15:42:52 +0800 Subject: [PATCH] fix(resolver): make trigger of notification wait for operation --- src/mutations/article/updateTagSetting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mutations/article/updateTagSetting.ts b/src/mutations/article/updateTagSetting.ts index 2d8af716a..390de048a 100644 --- a/src/mutations/article/updateTagSetting.ts +++ b/src/mutations/article/updateTagSetting.ts @@ -259,7 +259,7 @@ const resolver: MutationToUpdateTagSettingResolver = async ( // send notice if (tag.owner) { - notificationService.trigger({ + await notificationService.trigger({ event: 'tag_leave_editor', recipientId: tag.owner, actorId: viewer.id,