Commit 36a9fbd8 authored by nanahira's avatar nanahira

fix blank query where

parent 6ce1c1d2
...@@ -257,7 +257,7 @@ export class CrudBase<T extends ValidCrudEntity<T>> { ...@@ -257,7 +257,7 @@ export class CrudBase<T extends ValidCrudEntity<T>> {
// eslint-disable-next-line @typescript-eslint/no-empty-function // eslint-disable-next-line @typescript-eslint/no-empty-function
extraQuery: (qb: SelectQueryBuilder<T>) => void = () => {}, extraQuery: (qb: SelectQueryBuilder<T>) => void = () => {},
) { ) {
const query = this.queryBuilder(); const query = this.queryBuilder().where('1 = 1');
const newEnt = new this.entityClass(); const newEnt = new this.entityClass();
if (ent) { if (ent) {
Object.assign(newEnt, ent); Object.assign(newEnt, ent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment