new(kb.gblib): added postgres.

This commit is contained in:
Rodrigo Rodriguez 2025-01-16 05:47:28 -03:00
parent ded9026e91
commit d3ae8dd487

View file

@ -300,6 +300,16 @@ export class GBVMService extends GBService {
// Convert all table names to lowercase
freezeTableName: true,
hooks: {
beforeSave: (options) => {
if (options.where) {
options.where = toLowerCase(options.where);
}
},
beforeDestroy: (options) => {
if (options.where) {
options.where = toLowerCase(options.where);
}
},
beforeFind: (options) => {
if (options.where) {
options.where = toLowerCase(options.where);