Skip to content

Commit 10ea389

Browse files
committed
Update type.js
Resolved Integration Test Error
1 parent ca41ec0 commit 10ea389

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/config/type.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ const ConfigType = class ConfigType {
6969
});
7070

7171
await Promise.all(relations.map(async (relation) => {
72-
await strapi.entityService.delete(this.queryString, relation.id);
72+
await strapi.query(queryString).delete({
73+
where: { id: relation.id },
74+
});
7375
}));
7476
}));
7577

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

0 commit comments

Comments
 (0)