This commit is contained in:
Ahmed Bouhuolia
2025-11-19 22:59:21 +02:00
parent 17bcc14231
commit 2b384b2f6f
31 changed files with 405 additions and 62 deletions

View File

@@ -42,7 +42,7 @@ export class AccountsApplication {
private readonly getAccountsService: GetAccountsService,
private readonly bulkDeleteAccountsService: BulkDeleteAccountsService,
private readonly validateBulkDeleteAccountsService: ValidateBulkDeleteAccountsService,
) {}
) { }
/**
* Creates a new account.
@@ -148,7 +148,13 @@ export class AccountsApplication {
/**
* Deletes multiple accounts in bulk.
*/
public bulkDeleteAccounts = (accountIds: number[]): Promise<void> => {
return this.bulkDeleteAccountsService.bulkDeleteAccounts(accountIds);
public bulkDeleteAccounts = (
accountIds: number[],
options?: { skipUndeletable?: boolean },
): Promise<void> => {
return this.bulkDeleteAccountsService.bulkDeleteAccounts(
accountIds,
options,
);
};
}