Browse Source

fix: apply inflection on meta sync(gql)

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/914/head
Pranav C 3 years ago
parent
commit
10b2cec9ee
  1. 2
      packages/nocodb/src/lib/noco/gql/GqlApiBuilder.ts
  2. 1
      packages/nocodb/src/lib/noco/meta/handlers/xcMetaDiff.ts

2
packages/nocodb/src/lib/noco/gql/GqlApiBuilder.ts

@ -841,7 +841,7 @@ export class GqlApiBuilder extends BaseApiBuilder<Noco> implements XcMetaMgr {
/* filter based on prefix */
if (this.projectBuilder?.prefix) {
tables = tables.filter(t => {
t._tn = t._tn || t.tn.replace(this.projectBuilder?.prefix, '');
// t._tn = t._tn || t.tn.replace(this.projectBuilder?.prefix, '');
return t.tn.startsWith(this.projectBuilder?.prefix);
});
}

1
packages/nocodb/src/lib/noco/meta/handlers/xcMetaDiff.ts

@ -92,6 +92,7 @@ export default async function(
oldMetas.splice(oldMetaIdx, 1);
const tableProp = {
_tn: oldMeta._tn,
tn: table.tn,
type: XcMetaType.TABLE,
detectedChanges: []

Loading…
Cancel
Save