From ada3bb7b23aa6a34bd29411f318070742392c26d Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 9 Jan 2024 06:18:11 +0000 Subject: [PATCH] fix: include schema name while updating last modified value --- packages/nocodb/src/db/BaseModelSqlv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index c8d36bc8c9..b100da7627 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -5757,7 +5757,7 @@ class BaseModelSqlv2 { if (Object.keys(updateObject).length === 0) return; - const qb = knex(model.table_name).update(updateObject); + const qb = knex(this.tnPath(model.table_name)).update(updateObject); for (const rowId of Array.isArray(rowIds) ? rowIds : [rowIds]) { qb.orWhere(await this._wherePk(rowId));