Skip to content

Commit d3bcb1c

Browse files
committed
Update type.js
Update Query String
1 parent 10ea389 commit d3bcb1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/config/type.js

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

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

0 commit comments

Comments
 (0)