From c27be8778b82e59aadbc01dbfb05d7fa1ed5029e Mon Sep 17 00:00:00 2001 From: Mo Beigi Date: Fri, 25 Oct 2024 03:22:57 +1100 Subject: [PATCH] Add missed async --- .../collections/Comments/hooks/emailAfterNewCommentHook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/payload/collections/Comments/hooks/emailAfterNewCommentHook.ts b/app/src/payload/collections/Comments/hooks/emailAfterNewCommentHook.ts index d7b4a615..93a3ccba 100644 --- a/app/src/payload/collections/Comments/hooks/emailAfterNewCommentHook.ts +++ b/app/src/payload/collections/Comments/hooks/emailAfterNewCommentHook.ts @@ -21,7 +21,7 @@ export const emailAfterNewCommentHook: CollectionAfterChangeHook = async ({ doc, const textContent = extractTextContent(comment.content) || ''; - const relativeCommentUrl = resolveCommentsUrl(comment); + const relativeCommentUrl = await resolveCommentsUrl(comment); // TODO: Join the url below const absoluteCommentUrl = BASE_URL + relativeCommentUrl;