mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Fix content-manager offset for SQL databases
This commit is contained in:
parent
628ad4add4
commit
61d75648b0
@ -55,4 +55,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
@ -46,4 +46,4 @@
|
||||
"npm": ">= 5.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
@ -11,9 +11,9 @@ module.exports = {
|
||||
qb.orderBy(params.sort);
|
||||
}
|
||||
|
||||
qb.offset(params.skip);
|
||||
qb.offset(_.toNumber(params.skip));
|
||||
|
||||
qb.limit(params.limit);
|
||||
qb.limit(_.toNumber(params.limit));
|
||||
}).fetchAll({
|
||||
withRelated: this.associations.map(x => x.alias)
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user