Browse Source

fix(nocodb): remove unused code

pull/5601/head
Wing-Kam Wong 2 years ago
parent
commit
0abf4a2475
  1. 7
      packages/nocodb-nest/src/utils/NcConfigFactory.ts

7
packages/nocodb-nest/src/utils/NcConfigFactory.ts

@ -303,17 +303,12 @@ export default class NcConfigFactory {
}
private static addTypeCastConfig(clientType: string, connection) {
// typeCast only works for mysql
if (clientType.startsWith('mysql')) {
connection = {
...connection,
...this.mysqlConnectionTypeCastConfig,
};
} else {
// for postgres - see `setTypeParser` in `CustomKnex.ts`
connection = {
...connection,
timezone: 'UTC',
};
}
return connection;
}

Loading…
Cancel
Save