website refactor
This commit is contained in:
@@ -235,7 +235,7 @@ export class DataFactory {
|
||||
/**
|
||||
* Clean up specific entities
|
||||
*/
|
||||
async deleteEntities(entities: { id: any }[], entityType: string) {
|
||||
async deleteEntities(entities: { id: string | number }[], entityType: string) {
|
||||
const repository = this.dataSource.getRepository(entityType);
|
||||
for (const entity of entities) {
|
||||
await repository.delete(entity.id);
|
||||
|
||||
Reference in New Issue
Block a user