Browse Source

feat(testing): Minor clean up of testApi and TestReset service

pull/3848/head
Muhammed Mustafa 2 years ago
parent
commit
47ac62ab41
  1. 2
      packages/nocodb/src/lib/meta/api/testApis.ts
  2. 2
      packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts

2
packages/nocodb/src/lib/meta/api/testApis.ts

@ -28,7 +28,7 @@ export async function sqliteExec(req: Request<any, any>, res) {
}
}
const router = Router({ mergeParams: true });
const router = Router();
router.post('/api/v1/meta/test/reset', reset);
router.post('/api/v1/meta/test/sqlite_exec', sqliteExec);

2
packages/nocodb/src/lib/services/test/TestResetService/resetMetaSakilaSqliteProject.ts

@ -109,7 +109,7 @@ const resetMetaSakilaSqlite = async (
await metaKnex.raw(
sqlQuery
.trim()
.replace(/WHERE rowid = new.rowid/g, 'WHERE rowid = new.rowid;')
.replace(/WHERE rowid = new.rowid/g, '$&;')
);
}
}

Loading…
Cancel
Save