Added settings patch
This commit is contained in:
parent
c0adc13e32
commit
2983a5a8b0
13
patches/add-user-notify-email/add-user-notify-email.go
Normal file
13
patches/add-user-notify-email/add-user-notify-email.go
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "github.com/animenotifier/arn"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
defer arn.Node.Close()
|
||||||
|
|
||||||
|
for user := range arn.StreamUsers() {
|
||||||
|
settings := user.Settings()
|
||||||
|
settings.NotificationEmail = user.Email
|
||||||
|
settings.Save()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user