Skip to content

Commit 9d05503

Browse files
waleedlatif1claude
andcommitted
fix(monday): cast userId to string in deleteSubscription fallback
The DeleteSubscriptionContext type has userId as unknown, causing a TypeScript error when passing it to getOAuthToken which expects string. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1723d73 commit 9d05503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/lib/webhooks/providers/monday.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const mondayHandler: WebhookProviderHandler = {
213213

214214
if (!accessToken) {
215215
try {
216-
const fallbackToken = await getOAuthToken(ctx.webhook.userId, 'monday')
216+
const fallbackToken = await getOAuthToken(ctx.webhook.userId as string, 'monday')
217217
if (fallbackToken) accessToken = fallbackToken
218218
} catch {
219219
// Non-fatal — fall through to the guard below

0 commit comments

Comments
 (0)