#7897 - masterTest_24_36 #2909
|
@ -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