diff options
| author | Fuwn <[email protected]> | 2026-04-18 09:34:05 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-18 09:34:05 +0000 |
| commit | 9452e64710cec25ed7b3cbade10a55b61472f5f7 (patch) | |
| tree | 5ac14542ef9bbfa51fb287d28819271ad4a85d21 /src | |
| parent | Revert "fix(api): drop unused redirect query param from oauth refresh" (diff) | |
| download | due.moe-9452e64710cec25ed7b3cbade10a55b61472f5f7.tar.xz due.moe-9452e64710cec25ed7b3cbade10a55b61472f5f7.zip | |
refactor(naming): replace banned ctx abbreviation with full names
CLAUDE.md prohibits abbreviations like ctx in identifiers. Rename the
Cloudflare Worker ExecutionContext parameter to executionContext in the
proxy worker (handleMangaChapterCounts, fetch, scheduled), and alias
Trigger.dev's destructured { ctx } to taskContext in the notifications
scheduled task. The external property name on Trigger.dev's params
object is library-defined and remains ctx on the wire.
Verified: proxy worker still boots under local wrangler dev and all
routes (OPTIONS, POST /manga/chapter-counts, forwardProxyRequest) still
respond identically.
Diffstat (limited to 'src')
| -rw-r--r-- | src/trigger/notifications.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trigger/notifications.ts b/src/trigger/notifications.ts index 30a50a12..e36f913f 100644 --- a/src/trigger/notifications.ts +++ b/src/trigger/notifications.ts @@ -25,9 +25,9 @@ const subscriptionEndpoint = (subscription: unknown) => export const notificationsTask = schedules.task({ id: "notifications", - run: async (_payload, { ctx }) => { - const environment = ctx.environment.slug; - const triggerProjectReference = ctx.project.ref; + run: async (_payload, { ctx: taskContext }) => { + const environment = taskContext.environment.slug; + const triggerProjectReference = taskContext.project.ref; const supabase = createClient( ( await envvars.retrieve( |