fix: Use strapi.log.warn instead of logging warnings with console.log

pull/93/head
Boaz Poolman 2023-09-06 16:16:48 +02:00
parent b9527532b6
commit 5199e7adc8
1 changed files with 2 additions and 3 deletions

View File

@ -117,8 +117,7 @@ const ConfigType = class ConfigType {
data: query,
});
} catch (error) {
console.warn(error);
console.log("Use Query Engine API instead of Entity Service API");
strapi.log.warn(logMessage(`Use Query Engine API instead of Entity Service API for type ${this.configPrefix}`));
await queryAPI.update({ where: combinedUidWhereFilter, data: query });
}