#7896 - 24.36 Dev To Test #2884

Merged
jsegarra merged 118 commits from dev into test 2024-08-27 10:32:53 +00:00
1 changed files with 1 additions and 4 deletions
Showing only changes of commit 82c28e0399 - Show all commits

View File

@ -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;
}