fix: Use strapi.log.warn instead of logging warnings with console.log
parent
0c2086e33a
commit
c0582bd756
|
@ -116,9 +116,8 @@ const ConfigType = class ConfigType {
|
||||||
await strapi.entityService.update(this.queryString, entity.id, {
|
await strapi.entityService.update(this.queryString, entity.id, {
|
||||||
data: query,
|
data: query,
|
||||||
});
|
});
|
||||||
} catch(error) {
|
} catch (error) {
|
||||||
console.warn(error);
|
strapi.log.warn(logMessage(`Use Query Engine API instead of Entity Service API for type ${this.configPrefix}`));
|
||||||
console.log("Use Query Engine API instead of Entity Service API");
|
|
||||||
await queryAPI.update({ where: combinedUidWhereFilter, data: query });
|
await queryAPI.update({ where: combinedUidWhereFilter, data: query });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue