wizeline / project-lab

Proposal Hunt / Project Lab experimental repo
MIT License
5 stars 0 forks source link

Fix sync from wos script #312

Closed jackbravo closed 2 years ago

jackbravo commented 2 years ago

This is making our deploys to development fail.

Probably changing the skills deleteMany query to a raw query could help, based on the last comment.

/home/runner/work/project-lab/project-lab/node_modules/@prisma/client/runtime/index.js:45629
        throw new PrismaClientKnownRequestError(message, e.code, this.client._clientVersion, e.meta);
              ^
Error: Query parameter limit exceeded error: Parameter limits for this database provider require this query to be split into multiple queries, but the negation filters used prevent the query from being split. Please reduce the used values in the query..
    at Object.request (/home/runner/work/project-lab/project-lab/node_modules/@prisma/client/runtime/index.js:45629:15)
    at PrismaClient._request (/home/runner/work/project-lab/project-lab/node_modules/@prisma/client/runtime/index.js:46456:18)
    at async Promise.all (index 0)
    at Object.syncCatalogs [as default] (/home/runner/work/project-lab/project-lab/tasks/syncAllDataFromWOS.ts:75:3)
    at task (/home/runner/work/project-lab/project-lab/tasks/syncAllDataFromWOSTask.ts:13:3)
jackbravo commented 2 years ago

These are the same errors but in local, that @leonardohervert found

image