refactor use cases
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user