fix(database): the options.where object is empty

This commit is contained in:
chenos 2022-02-14 21:27:50 +08:00
parent 620b2b463e
commit c538fdf73a

View File

@ -445,7 +445,7 @@ export class Repository<TModelAttributes extends {} = any, TCreationAttributes e
const params = parser.toSequelizeParams(); const params = parser.toSequelizeParams();
debug('sequelize query params %o', params); debug('sequelize query params %o', params);
return { ...options, ...params }; return { where: {}, ...options, ...params };
} }
protected parseFilter(filter: Filter) { protected parseFilter(filter: Filter) {