fix opts being defiend

This commit is contained in:
Boegie19 2023-04-26 23:29:58 +02:00
parent 2598bec778
commit d73059185f

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