mercurjs / mercur-api-starter

5 stars 9 forks source link

Error changing user status from admin. #30

Open GNURub opened 2 months ago

GNURub commented 2 months ago
error:   property status should not exist
Error: property status should not exist
    at /marketplace/api/node_modules/@medusajs/medusa/dist/utils/validator.js:153:31
    at step (/marketplace/api/node_modules/@medusajs/medusa/dist/utils/validator.js:44:23)
    at Object.next (/marketplace/api/node_modules/@medusajs/medusa/dist/utils/validator.js:25:53)
    at fulfilled (/marketplace/api/node_modules/@medusajs/medusa/dist/utils/validator.js:16:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'invalid_data',
  code: undefined,
  date: 2024-08-23T11:08:55.585Z
}
KieranTravers commented 2 months ago

I cant remember exactly but I had a very similar or the same issue, it stemmed from the users table in my database... Worth a check!

GNURub commented 2 months ago

The project is newly installed. I have not made any changes to the entire project. There is only the seed.json user and the vendor user for testing, which is the one that cannot be validated.