From d346b0ace8989debc2ec61cd25630aa2779d73cf Mon Sep 17 00:00:00 2001 From: Goldie Date: Sat, 31 Aug 2024 13:45:30 +0000 Subject: [PATCH] fix stop.ts --- src/handlers/shared/stop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/shared/stop.ts b/src/handlers/shared/stop.ts index 6bd5c76..38a3eaf 100644 --- a/src/handlers/shared/stop.ts +++ b/src/handlers/shared/stop.ts @@ -11,7 +11,7 @@ export async function stop(context: Context, issue: Context["payload"]["issue"], const userToUnassign = assignees.find((assignee: Partial) => assignee?.login?.toLowerCase() === sender.login.toLowerCase()); if (!userToUnassign) { - throw new Error(logger.error("You are not assigned to this task", { issueNumber, user: sender.login })?.logMessage.diff as string); + throw new Error(logger.error("You are not assigned to this task", { issueNumber, user: sender.login })?.logMessage.raw as string); } // close PR