commit
c822e178c1
@ -30,9 +30,15 @@
|
|||||||
|
|
||||||
* Start Chrome via `google-chrome --ignore-certificate-errors`
|
* Start Chrome via `google-chrome --ignore-certificate-errors`
|
||||||
|
|
||||||
|
## Database
|
||||||
|
|
||||||
|
* `go get github.com/animenotifier/database`
|
||||||
|
* `ln -s $GOPATH/src/github.com/animenotifier/database ~/.aero/db/arn`
|
||||||
|
|
||||||
## API keys
|
## API keys
|
||||||
|
|
||||||
* Get a Google OAuth 2.0 client key & secret from [console.developers.google.com](https://console.developers.google.com)
|
* Get a Google OAuth 2.0 client key & secret from [console.developers.google.com](https://console.developers.google.com)
|
||||||
|
* Add `https://beta.notify.moe/auth/google/callback` as an authorized redirect URI
|
||||||
* Create the file `notify.moe/security/api-keys.json`:
|
* Create the file `notify.moe/security/api-keys.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -10,7 +10,6 @@ func main() {
|
|||||||
defer arn.Node.Close()
|
defer arn.Node.Close()
|
||||||
|
|
||||||
arn.DB.Clear("EmailToUser")
|
arn.DB.Clear("EmailToUser")
|
||||||
arn.DB.Clear("GoogleToUser")
|
|
||||||
|
|
||||||
// Iterate over the stream
|
// Iterate over the stream
|
||||||
count := 0
|
count := 0
|
||||||
@ -30,6 +29,9 @@ func main() {
|
|||||||
user.AgeRange = arn.UserAgeRange{}
|
user.AgeRange = arn.UserAgeRange{}
|
||||||
user.Location = arn.UserLocation{}
|
user.Location = arn.UserLocation{}
|
||||||
|
|
||||||
|
user.PushSubscriptions().Items = []*arn.PushSubscription{}
|
||||||
|
user.PushSubscriptions().Save()
|
||||||
|
|
||||||
// Save in DB
|
// Save in DB
|
||||||
user.Save()
|
user.Save()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user