Skip to content

Commit 8bbfa0e

Browse files
authored
Merge pull request #712 from TaloDev/develop
Release 0.97.1
2 parents 86c0489 + 3168693 commit 8bbfa0e

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

package-lock.json

Lines changed: 22 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "game-services",
3-
"version": "0.97.0",
3+
"version": "0.97.1",
44
"description": "",
55
"main": "src/index.ts",
66
"scripts": {
@@ -90,7 +90,7 @@
9090
"koa-logger": "^3.2.1",
9191
"lodash": "^4.17.21",
9292
"mikro-orm-cache-adapter-redis": "^4.0.0",
93-
"nodemailer": "^7.0.7",
93+
"nodemailer": "^7.0.11",
9494
"otplib": "^12.0.1",
9595
"qrcode": "^1.5.0",
9696
"qs": "^6.11.0",

src/services/api/game-stat-api.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export default class GameStatAPIService extends APIService {
321321
game: stat.game
322322
}, { populate: ['aliases:ref'] })
323323
whereConditions += ` AND player_alias_id IN (${player.aliases.getIdentifiers().join(', ')})`
324-
} catch (err) {
324+
} catch {
325325
req.ctx.throw(404, 'Player not found')
326326
}
327327
}

src/subscribers/game-channel.subscriber.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EventArgs, EventSubscriber, wrap } from '@mikro-orm/mysql'
1+
import { EventArgs, EventSubscriber } from '@mikro-orm/mysql'
22
import { deferClearResponseCache } from '../lib/perf/responseCacheQueue'
33
import GameChannel from '../entities/game-channel'
44
import GameChannelProp from '../entities/game-channel-prop'
@@ -9,18 +9,14 @@ export class GameChannelSubscriber implements EventSubscriber {
99
}
1010

1111
async clearSearchCacheKey(args: EventArgs<GameChannel | GameChannelProp>) {
12-
const { entity, em } = args
12+
const { entity } = args
1313
const channel = entity instanceof GameChannel ? entity : entity.gameChannel
1414

1515
if (!channel) {
1616
// can happen when a prop is being deleted, the reference to the channel is gone
1717
return
1818
}
1919

20-
if (!wrap(channel.game).isInitialized()) {
21-
await em.fork().populate(channel, ['game'])
22-
}
23-
2420
await deferClearResponseCache(GameChannel.getSearchCacheKey(channel.game, true))
2521
}
2622

0 commit comments

Comments
 (0)