parent
10ea389822
commit
d3bcb1cd7c
|
@ -69,9 +69,7 @@ const ConfigType = class ConfigType {
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(relations.map(async (relation) => {
|
await Promise.all(relations.map(async (relation) => {
|
||||||
await strapi.query(queryString).delete({
|
await strapi.entityService.delete(queryString, relation.id);
|
||||||
where: { id: relation.id },
|
|
||||||
});
|
|
||||||
}));
|
}));
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue