aboutsummaryrefslogtreecommitdiff
path: root/apps/proxy/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/proxy/src/index.js')
-rw-r--r--apps/proxy/src/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/proxy/src/index.js b/apps/proxy/src/index.js
index fa2503b5..e6ed8690 100644
--- a/apps/proxy/src/index.js
+++ b/apps/proxy/src/index.js
@@ -242,7 +242,7 @@ const recommendedVolumeText = (volumeChapterBoundaries, progress) => {
return recommended;
};
-const handleMangaChapterCounts = async (request, env, ctx) => {
+const handleMangaChapterCounts = async (request, env, executionContext) => {
if (!hasSupabaseConfig(env))
return jsonResponse(
request,
@@ -300,7 +300,7 @@ const handleMangaChapterCounts = async (request, env, ctx) => {
);
if (queueableRows.length)
- ctx.waitUntil(
+ executionContext.waitUntil(
Promise.all(queueBootstrap(env, queueableRows)).catch((error) => {
if (!isMangadexIdConstraintConflict(error)) throw error;
}),
@@ -375,14 +375,14 @@ const handleMangaSync = async (request, env) => {
};
export default {
- async fetch(request, env, ctx) {
+ async fetch(request, env, executionContext) {
try {
const url = new URL(request.url);
if (request.method === "OPTIONS") return handleOptions(request);
if (url.pathname === "/manga/chapter-counts" && request.method === "POST")
- return handleMangaChapterCounts(request, env, ctx);
+ return handleMangaChapterCounts(request, env, executionContext);
if (
url.pathname === "/manga/native-chapter-counts" &&
@@ -409,9 +409,9 @@ export default {
}
},
- async scheduled(_controller, env, ctx) {
+ async scheduled(_controller, env, executionContext) {
if (!hasSupabaseConfig(env)) return;
- ctx.waitUntil(syncMangadexIndex(env));
+ executionContext.waitUntil(syncMangadexIndex(env));
},
};