Browse Source

feat: update project list api to include project user role

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5885/head
Pranav C 1 year ago
parent
commit
18f0847f14
  1. 10
      packages/nocodb/src/models/ProjectUser.ts

10
packages/nocodb/src/models/ProjectUser.ts

@ -236,6 +236,16 @@ export default class ProjectUser {
projectList = await ncMeta
.knex(MetaTable.PROJECT)
.select(`${MetaTable.PROJECT}.*`)
.select(`${MetaTable.PROJECT}.title`)
.select(`${MetaTable.PROJECT}.prefix`)
.select(`${MetaTable.PROJECT}.status`)
.select(`${MetaTable.PROJECT}.description`)
.select(`${MetaTable.PROJECT}.meta`)
.select(`${MetaTable.PROJECT}.color`)
.select(`${MetaTable.PROJECT}.is_meta`)
.select(`${MetaTable.PROJECT}.created_at`)
.select(`${MetaTable.PROJECT}.updated_at`)
.select(`${MetaTable.PROJECT_USERS}.roles`)
.innerJoin(MetaTable.PROJECT_USERS, function () {
this.on(
`${MetaTable.PROJECT_USERS}.project_id`,

Loading…
Cancel
Save