I'm having an issue with connectOrCreate - specifi...
# orm-help
a
I'm having an issue with connectOrCreate - specifically, this:
Copy code
(node:15954) UnhandledPromiseRejectionWarning: Error:
Invalid `prisma.runs.create()` invocation in
/mnt/c/Users/me/wd/helios/commands/functions/sale.js:56:38

   52 }
   53
   54
   55 async function insertRun(msg, obj) {
→  56     const newRun = await prisma.runs.create(
  Error occurred during query execution:
EnvVarNotFound("Expected parent binding \'2\' to be present.")
    at qw.request (/mnt/c/Users/me/wd/helios/node_modules/@prisma/client/runtime/index.js:210:203)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async insertRun (/mnt/c/Users/me/wd/helios/commands/functions/sale.js:56:20)
However, the only thing that has a value of 2 isn't it - I've changed it multiple times, still returns the error with 2.