diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 6c338f0ad5..3bac5651f4 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -3298,7 +3298,7 @@ class BaseModelSqlv2 { this._convertAttachmentType(attachmentColumns, d), ); } else { - this._convertAttachmentType(attachmentColumns, data); + data = this._convertAttachmentType(attachmentColumns, data); } } } @@ -3374,7 +3374,7 @@ class BaseModelSqlv2 { if (Array.isArray(data)) { data = data.map((d) => this._convertDateFormat(dateTimeColumns, d)); } else { - this._convertDateFormat(dateTimeColumns, data); + data = this._convertDateFormat(dateTimeColumns, data); } } }