fix comments for new users
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"net/mail"
|
"net/mail"
|
||||||
|
|
||||||
"github.com/pocketbase/dbx"
|
"github.com/pocketbase/dbx"
|
||||||
@@ -46,7 +45,10 @@ func getNotificationPermissions(app core.App, user string, notificationType Noti
|
|||||||
|
|
||||||
settingsForType, exists := notificationPreferences[notificationType]
|
settingsForType, exists := notificationPreferences[notificationType]
|
||||||
if !exists {
|
if !exists {
|
||||||
return nil, fmt.Errorf("notification type '%s' not found", notificationType)
|
return &NotificationSettings{
|
||||||
|
Web: true,
|
||||||
|
Email: true,
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return &settingsForType, nil
|
return &settingsForType, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user