mirror of
https://github.com/pushbits/server.git
synced 2025-07-30 06:39:13 +02:00
Implement changing of passwords
This commit is contained in:
parent
d621333b6e
commit
e1cd2d2f8e
7 changed files with 46 additions and 22 deletions
|
@ -23,8 +23,8 @@ type NotificationDispatcher interface {
|
|||
|
||||
// NotificationHandler holds information for processing requests about notifications.
|
||||
type NotificationHandler struct {
|
||||
DB NotificationDatabase
|
||||
Dispatcher NotificationDispatcher
|
||||
DB NotificationDatabase
|
||||
DP NotificationDispatcher
|
||||
}
|
||||
|
||||
// CreateNotification is used to create a new notification for a user.
|
||||
|
@ -45,7 +45,7 @@ func (h *NotificationHandler) CreateNotification(ctx *gin.Context) {
|
|||
}
|
||||
notification.Date = time.Now()
|
||||
|
||||
if success := successOrAbort(ctx, http.StatusInternalServerError, h.Dispatcher.SendNotification(application, ¬ification)); !success {
|
||||
if success := successOrAbort(ctx, http.StatusInternalServerError, h.DP.SendNotification(application, ¬ification)); !success {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue