Skip to content

Commit

Permalink
feat: adds awards not yet recieved to get awards handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrltrent committed Dec 19, 2023
1 parent dceb4a4 commit 020ae5a
Show file tree
Hide file tree
Showing 16 changed files with 121 additions and 88 deletions.
2 changes: 1 addition & 1 deletion config/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const (
HottestPostNotificationsUpperBound = "23:59" // the upper bound of the hottest post notifications cron job - 24h time
TitleMaxLength = 100 // max length of a post title
BodyMaxLength = 1000 // max length of a post content/body
WhenRunDailyHottestCron = "10:58" // when to run the daily hottest cron job - 24h time (format ex: "23:55")
WhenRunDailyHottestCron = "23:55" // when to run the daily hottest cron job - 24h time (format ex: "23:55")
)

// ----- AWARD TYPES DB IDs
Expand Down
32 changes: 16 additions & 16 deletions handlers/admin/requests.http

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions handlers/auth/requests.http
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Content-Type: application/json
PATCH http://127.0.0.1:8080/api/v1/auth/update-email
Content-Type: application/json
X-AppCheck-Token: kXfeSRgYTnoUztu6MO8FndqiRayoBaJqyDKQmoqvX3V9sZVlep/cm7cP!mgd-B9H
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImJlNzgyM2VmMDFiZDRkMmI5NjI3NDE2NThkMjA4MDdlZmVlNmRlNWMiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE3MDI5ODY3MTksInVzZXJfaWQiOiJzQWxoN1p5bkVmYzd6ZUhHU3Y4TWVYamVLWVQyIiwic3ViIjoic0FsaDdaeW5FZmM3emVIR1N2OE1lWGplS1lUMiIsImlhdCI6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ZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.GjEqgUvvr_2KbZFFHuXzLo1nU71hAK8d59I0JNiK0I44fDLUn9mjZZ6LVamb-fnQWAJsWMBR9fqbyGR_2B7yD_Qk8JE8Odgdz_1Ywp-wLEaqybmDBRxwbEyGBmWj2zZ0WQMhcU6pl_w2l6JbNstNU1aHXj2ls4O7tsWF9eQi9laKh-ofUrrk6rtUJbsVcUnSmC6NwUX-iv4nutvMrhwpKhh0wneMZWrFNCnnQXMnpzqnCNy-lKmrUnq6NkGv8gkzivblwBFa0Sr_XFzUvGoDzvjBxgcIoEVcy_f31g5TUPdkoBlgduZ4l3Go2BBeaI86XdXFBXPgHvEsStKhKqFZMw

{
"email": "[email protected]"
Expand All @@ -25,15 +25,15 @@ Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImJlNzgyM2VmMDFiZDRkMmI5NjI3ND

POST http://127.0.0.1:8080/api/v1/auth/resend-verification-email
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImJlNzgyM2VmMDFiZDRkMmI5NjI3NDE2NThkMjA4MDdlZmVlNmRlNWMiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE3MDI5ODY3MTksInVzZXJfaWQiOiJzQWxoN1p5bkVmYzd6ZUhHU3Y4TWVYamVLWVQyIiwic3ViIjoic0FsaDdaeW5FZmM3emVIR1N2OE1lWGplS1lUMiIsImlhdCI6MTcwMjk4NjcxOSwiZXh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OnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsibWF0dGhldy5ybC50cmVudEBnbWFpbC5jb20iXX0sInNpZ25faW5fcHJvdmlkZXIiOiJwYXNzd29yZCJ9fQ.GjEqgUvvr_2KbZFFHuXzLo1nU71hAK8d59I0JNiK0I44fDLUn9mjZZ6LVamb-fnQWAJsWMBR9fqbyGR_2B7yD_Qk8JE8Odgdz_1Ywp-wLEaqybmDBRxwbEyGBmWj2zZ0WQMhcU6pl_w2l6JbNstNU1aHXj2ls4O7tsWF9eQi9laKh-ofUrrk6rtUJbsVcUnSmC6NwUX-iv4nutvMrhwpKhh0wneMZWrFNCnnQXMnpzqnCNy-lKmrUnq6NkGv8gkzivblwBFa0Sr_XFzUvGoDzvjBxgcIoEVcy_f31g5TUPdkoBlgduZ4l3Go2BBeaI86XdXFBXPgHvEsStKhKqFZMw

{}

### Send password reset email

POST http://127.0.0.1:8080/api/v1/auth/send-password-reset-email
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImJlNzgyM2VmMDFiZDRkMmI5NjI3NDE2NThkMjA4MDdlZmVlNmRlNWMiLCJ0eXAiOiJKV1QifQ.eyJyb2xlcyI6W10sInN5bmMiOnRydWUsImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9jb25mZXNpLXNlcnZlci1kZXYiLCJhdWQiOiJjb25mZXNpLXNlcnZlci1kZXYiLCJhdXRoX3RpbWUiOjE3MDI5ODY3MTksInVzZXJfaWQiOiJzQWxoN1p5bkVmYzd6ZUhHU3Y4TWVYamVLWVQyIiwic3ViIjoic0FsaDdaeW5FZmM3emVIR1N2OE1lWGplS1lUMiIsImlhdCI6MTcwMjk4NjcxOSwiZXhwIjoxNzAyOTkwMzE5LCJlbWFpbCI6Im1hdHRoZXcucmwudHJlbnRAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7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IiOiJwYXNzd29yZCJ9fQ.GjEqgUvvr_2KbZFFHuXzLo1nU71hAK8d59I0JNiK0I44fDLUn9mjZZ6LVamb-fnQWAJsWMBR9fqbyGR_2B7yD_Qk8JE8Odgdz_1Ywp-wLEaqybmDBRxwbEyGBmWj2zZ0WQMhcU6pl_w2l6JbNstNU1aHXj2ls4O7tsWF9eQi9laKh-ofUrrk6rtUJbsVcUnSmC6NwUX-iv4nutvMrhwpKhh0wneMZWrFNCnnQXMnpzqnCNy-lKmrUnq6NkGv8gkzivblwBFa0Sr_XFzUvGoDzvjBxgcIoEVcy_f31g5TUPdkoBlgduZ4l3Go2BBeaI86XdXFBXPgHvEsStKhKqFZMw

{
"email": "[email protected]"
Expand Down
Loading

0 comments on commit 020ae5a

Please sign in to comment.