removed default opts

This commit is contained in:
Boegie19 2023-05-23 17:57:41 +02:00
parent 7821baed76
commit bd7df454c9
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ const createDefaultImplementation = ({ strapi, db, eventHub, entityValidator })
});
},
async findMany(uid, opts = {}) {
async findMany(uid, opts) {
const { kind } = strapi.getModel(uid);
const wrappedParams = await this.wrapParams(opts, { uid, action: 'findMany' });

View File

@ -155,7 +155,7 @@ const decorator = (service) => ({
* @param {string} uid - Model uid
* @param {object} opts - Query options object (params, data, files, populate)
*/
async findMany(uid, opts = {}) {
async findMany(uid, opts) {
const model = strapi.getModel(uid);
const { isLocalizedContentType } = getService('content-types');