Reputation: 2318
I have been extracting req and res using this format:
fn: async function(inputs, exits, { req, res }) {...}
I didn't have any problem until I deleted package-lock.json and tried to reinstall everything. Suddenly I get undefined req and res. It's weird because when I use an env variable and then extract req and res from it like so:
fn: async function(inputs, exits, env) { let {req, res} = env ...}
everything works. Can someone enlighten me what caused this issue?
Upvotes: 1
Views: 813