Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-lippert authored Sep 26, 2023
1 parent eb74985 commit 6f00047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class API {

if (!env.CTX) console.warn('[CTX] env.CTX is undefined, using fetch to ctx.do.')

const contextVin = env.CTX != undefined ? await env.CTX.fetch(authReq).then(x=>x.json()) : await fetch(authReq).then(res => res.json())
const contextVin = env.CTX != undefined ? await env.CTX.fetch(req).then(x=>x.json()) : await fetch(authReq).then(res => res.json())

req.user = contextVin.user
req.ctx = contextVin
Expand Down

2 comments on commit 6f00047

@workers-do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6f00047 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

apis-do – ./

apis-do-git-main.dev.driv.ly
apis-do.dev.driv.ly
apis.do

Please sign in to comment.