Skip to content

Commit

Permalink
fastify version uplift and raid tracking API form upgrade (#889)
Browse files Browse the repository at this point in the history
* fastify version uplift to v4.25.2

* Update raid tracking API for forms

all credit to @kbtbc
  • Loading branch information
roundaboutluke authored Jan 8, 2024
1 parent d54e6cb commit 5332022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"deep-object-diff": "^1.1.9",
"discord.js": "^13.16.0",
"fast-json-stable-stringify": "^2.1.0",
"fastify": "^4.23.0",
"fastify": "^4.25.2",
"flat-cache": "^3.0.4",
"form-data": "^4.0.0",
"geo-tz": "^7.0.7",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/apiTrackingRaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports = async (fastify, options, next) => {
team: row.team >= 0 && row.team <= 4 ? row.team : 4, // carefully chosen to get nulls/undefined to 4 but allow 0
clean: +defaultTo(+row.clean, 0),
level: +level,
form: 0,
form: +defaultTo(row.form, 0),
move: +defaultTo(row.move, 9000),
evolution: +defaultTo(row.evolution, 9000),
gym_id: row.gym_id ? row.gym_id : null,
Expand Down

0 comments on commit 5332022

Please sign in to comment.