Browse Source

fix: upgrader correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
a9ddef713c
  1. 10
      packages/nocodb/src/lib/version-upgrader/ncProjectRolesUpgrader.ts

10
packages/nocodb/src/lib/version-upgrader/ncProjectRolesUpgrader.ts

@ -19,8 +19,12 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
return r; return r;
}) })
.join(','); .join(',');
await ncMeta.metaUpdate(null, null, MetaTable.USERS, user, { await ncMeta.metaUpdate(
roles: user.roles, null,
}); null,
MetaTable.USERS,
{ roles: user.roles },
user.id
);
} }
} }

Loading…
Cancel
Save