joas8211/payload-tenancy

Can't access any collections after installing

deitux123 opened this issue · 1 comments

When a user opens any collection in the admin view (e.g. comments, posts, pages, etc), payload gives this error:

QueryError: The following path cannot be queried: version.tenant
at validateQueryPaths (/home/node/app/node_modules/payload/src/database/queryValidation/validateQueryPaths.ts:91:13)

using:

    "payload": "^2.11.1",
    "payload-tenancy": "^2.1.1",

After some investigation, this seems to only happen on some collections, I'm using the payload seed project, and in collections that don't load there is this line:

  versions: {
    drafts: true,
  },

Hey @deitux123, how did you fix this problem?