refactor use cases

This commit is contained in:
2025-12-21 01:31:31 +01:00
parent 8ecd638396
commit 22f28728ce
17 changed files with 402 additions and 286 deletions

View File

@@ -81,13 +81,15 @@ export class SendNotificationUseCase {
...(command.data ? { data: command.data } : {}),
...(command.actionUrl ? { actionUrl: command.actionUrl } : {}),
});
await this.notificationRepository.create(notification);
return {
this.output.present({
notification,
deliveryResults: [],
};
});
return Result.ok(undefined);
}
// Determine which channels to use