chore: refs #7524 WIP limit call
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-07-30 10:01:05 +02:00
parent 766da06c2f
commit 82c28e0399
1 changed files with 1 additions and 4 deletions

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