This commit is contained in:
parent
766da06c2f
commit
82c28e0399
|
@ -34,11 +34,8 @@ module.exports = function(Self) {
|
|||
this.beforeRemote('find', async function(ctx) {
|
||||
isSelect = true;
|
||||
const filter = ctx.args.filter || {};
|
||||
// const models = this.app.models;
|
||||
// console.log(this.dataSource, Self.dataSource); undefined/null
|
||||
if (filter.limit === undefined) {
|
||||
// WIP
|
||||
// const {limit} = await models.OrmConfig.findOne(); Not working
|
||||
// const [{selectLimit: limit}] = await this.rawSql('SELECT selectLimit FROM ormConfig', null);
|
||||
filter.limit = 1/* limit */;
|
||||
ctx.args.filter = filter;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue