Browse Source

fix(nocodb): remove extra `.builder`

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5392/head
Pranav C 2 years ago
parent
commit
8653ff5ee1
  1. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/functionMappings/mssql.ts

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/functionMappings/mssql.ts

@ -14,7 +14,7 @@ const mssql = {
for (const [i, arg] of Object.entries(args.pt.arguments)) { for (const [i, arg] of Object.entries(args.pt.arguments)) {
if (+i === args.pt.arguments.length - 1) { if (+i === args.pt.arguments.length - 1) {
query += args.knex query += args.knex
.raw(`\n\tElse ${(await args.fn(arg)).builder.builder.toQuery()}`) .raw(`\n\tElse ${(await args.fn(arg)).builder.toQuery()}`)
.toQuery(); .toQuery();
} else { } else {
query += args.knex query += args.knex

Loading…
Cancel
Save