Skip to content

Commit

Permalink
Merge pull request #487 from hanshino:chore/patch
Browse files Browse the repository at this point in the history
Update dependency versions
  • Loading branch information
hanshino authored May 10, 2024
2 parents 0d61247 + 60393ee commit fc1e5f3
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 181 deletions.
18 changes: 9 additions & 9 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"migrate": "knex migrate:latest"
},
"dependencies": {
"@sentry/node": "^7.107.0",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"axios": "1.6.7",
"@sentry/node": "^7.114.0",
"ajv": "^8.13.0",
"ajv-formats": "^3.0.1",
"axios": "1.6.8",
"bottender": "1.5.5",
"brotli": "^1.3.3",
"cheerio": "^1.0.0-rc.12",
"config": "^3.3.11",
"cron": "^3.1.6",
"cron": "^3.1.7",
"date-format": "^4.0.14",
"express": "^4.18.3",
"express": "^4.19.2",
"express-rate-limit": "^7.2.0",
"human-number": "^2.0.4",
"i18n": "^0.15.1",
Expand All @@ -34,18 +34,18 @@
"md5": "^2.3.0",
"minimist": "^1.2.8",
"moment": "^2.30.1",
"mysql2": "^3.9.2",
"mysql2": "^3.9.7",
"redis": "^4.6.13",
"socket.io": "^4.7.5",
"sqlite3": "^5.1.7",
"table": "^6.8.1",
"table": "^6.8.2",
"uuid-random": "^1.3.2"
},
"devDependencies": {
"@types/express": "^4.17.21",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint": "^9.2.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions app/src/controller/princess/gacha.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ async function gacha(context, { match, pickup, ensure = false, europe = false })
const now = moment();
const month = now.month() + 1;
const date = now.date();
const isCrossYear = (month === 12 && date === 31) || (month === 1 && date === 1);
const isEventTime = month === 5 && (date >= 11 || date <= 14);

// 只有 12/31~1/1 這兩天才會開放歐洲轉蛋池
if (europe && !isCrossYear) {
if (europe && !isEventTime) {
return context.replyText(i18n.__("message.gacha.cross_year_only"));
}

Expand Down
Loading

0 comments on commit fc1e5f3

Please sign in to comment.