Browse Source

fix: postgres viewlist issue

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/843/head
Pranav C 3 years ago
parent
commit
893ba21fed
  1. 8
      packages/nocodb/package-lock.json
  2. 2
      packages/nocodb/package.json
  3. 2
      packages/nocodb/src/lib/noco/common/BaseApiBuilder.ts

8
packages/nocodb/package-lock.json generated

@ -1,6 +1,6 @@
{
"name": "nocodb",
"version": "0.83.4",
"version": "0.83.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -12306,9 +12306,9 @@
"integrity": "sha512-3AryS9uwa5NfISLxMciUonrH7YfXp+nlahB9T7girXIsLQrmwX4MdnuKs32akduCOGpKmjTJSWmATULbuMkbfw=="
},
"nc-help": {
"version": "0.2.16",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.16.tgz",
"integrity": "sha512-s2ZTsUzGy9v6l1Kg0Wc/t4ixuxXCWB3SDPo0P2ODDUEPBKhB/HBOG0RMOzwxmlEh0SWX2xsTas9YA2I++M2x0Q==",
"version": "0.2.17",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.17.tgz",
"integrity": "sha512-C+MaIbHqhQ47SLyBgYTPUysj3+MwfTaGN0DJxYR+idArQkWUW1L7EaLrzzLsHyyk6exXYJLX6rLiNn3On+eBiw==",
"requires": {
"axios": "^0.21.1",
"boxen": "^4.2.0",

2
packages/nocodb/package.json

@ -146,7 +146,7 @@
"mysql2": "^2.2.5",
"nanoid": "^3.1.20",
"nc-common": "0.0.6",
"nc-help": "^0.2.16",
"nc-help": "^0.2.17",
"nc-lib-gui": "0.83.5",
"nc-plugin": "^0.1.1",
"ncp": "^2.0.0",

2
packages/nocodb/src/lib/noco/common/BaseApiBuilder.ts

@ -1676,7 +1676,7 @@ export default abstract class BaseApiBuilder<T extends Noco>
if (inflectionFns && inflectionFns !== 'none') {
name = inflectionFns
.split(',')
.reduce((out, fn) => inflection?.[fn]?.(out) ?? out, name);
.reduce((out, fn) => inflection?.[fn]?.(out) || out, name);
}
return this.apiType === 'graphql' ? name.replace(/[^_\da-z]/gi, '_') : name;
}

Loading…
Cancel
Save