Skip to content

Commit

Permalink
fix: pass decoded env
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 3, 2024
1 parent 6151b52 commit a9b21e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
const decodedEnv = Value.Decode(envConfigValidator.schema, env);
webhookPayload.env = decodedEnv;
webhookPayload.settings = settings;
await startStopTask(webhookPayload, env);
await startStopTask(webhookPayload, decodedEnv);
return new Response(JSON.stringify("OK"), { status: 200, headers: { "content-type": "application/json" } });
} catch (error) {
return handleUncaughtError(error);
Expand Down

0 comments on commit a9b21e0

Please sign in to comment.