#7897 - masterTest_24_36 #2909

Merged
jsegarra merged 132 commits from 7897_masterTest_24_36 into master 2024-09-03 06:37:54 +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;
}