Update type.js

Resolved Integration Test Error
pull/93/head
ppaoli 2023-10-11 18:17:53 +02:00
parent ca41ec07a4
commit 10ea389822
1 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,9 @@ const ConfigType = class ConfigType {
});
await Promise.all(relations.map(async (relation) => {
await strapi.entityService.delete(this.queryString, relation.id);
await strapi.query(queryString).delete({
where: { id: relation.id },
});
}));
}));
@ -117,7 +119,7 @@ const ConfigType = class ConfigType {
data: query,
});
} catch (error) {
strapi.log.warn(logMessage(`Use Query Engine API instead of Entity Service API for type ${this.configPrefix}`));
console.warn(logMessage(`Use Query Engine API instead of Entity Service API for type ${this.configPrefix}`));
await queryAPI.update({ where: combinedUidWhereFilter, data: query });
}