Skip to content
105 changes: 60 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "game-services",
"version": "0.113.0",
"version": "0.113.1",
"description": "",
"license": "MIT",
"author": "Talo Platform Ltd",
Expand Down Expand Up @@ -28,10 +28,10 @@
"@clickhouse/client": "^1.15.0",
"@hyperdx/node-opentelemetry": "^0.8.2",
"@koa/cors": "^5.0.0",
"@mikro-orm/core": "^6.6.9",
"@mikro-orm/migrations": "^6.6.9",
"@mikro-orm/mysql": "^6.6.9",
"@mikro-orm/reflection": "^6.6.9",
"@mikro-orm/core": "^6.6.10",
"@mikro-orm/migrations": "^6.6.10",
"@mikro-orm/mysql": "^6.6.10",
"@mikro-orm/reflection": "^6.6.10",
"@ngneat/falso": "^7.2.0",
"@opentelemetry/api": "^1.9.0",
"@sentry/node": "^9.29.0",
Expand Down Expand Up @@ -69,7 +69,7 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@mikro-orm/cli": "^6.6.9",
"@mikro-orm/cli": "^6.6.10",
"@types/archiver": "^6.0.3",
"@types/bcrypt": "^5.0.2",
"@types/jsonwebtoken": "^9.0.9",
Expand Down
3 changes: 2 additions & 1 deletion src/entities/failed-job.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Entity, PrimaryKey, Property } from '@mikro-orm/mysql'
import { Entity, Index, PrimaryKey, Property } from '@mikro-orm/mysql'

@Entity()
export default class FailedJob {
Expand All @@ -17,6 +17,7 @@ export default class FailedJob {
@Property({ columnType: 'text' })
stack!: string

@Index()
@Property()
failedAt: Date = new Date()
}
6 changes: 3 additions & 3 deletions src/entities/user-recovery-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class UserRecoveryCode {
@PrimaryKey()
id!: number

@ManyToOne(() => User)
@ManyToOne(() => User, { deleteRule: 'cascade' })
user: User

@Property()
Expand All @@ -20,7 +20,7 @@ export default class UserRecoveryCode {
this.user = user
}

generateCode(): string {
generateCode() {
const characters = 'ABCDEFGHIJKMNOPQRSTUVWXYZ0123456789'
let code = ''

Expand All @@ -31,7 +31,7 @@ export default class UserRecoveryCode {
return encrypt(code, process.env.RECOVERY_CODES_SECRET!)
}

getPlainCode(): string {
getPlainCode() {
return decrypt(this.code, process.env.RECOVERY_CODES_SECRET!)
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/integrations/clients/google-play-games-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class GooglePlayGamesClient {
const event = this.createIntegrationEvent(config)

const totalAttempts = 3
const abortTimeout = 1000
const abortTimeout = 2000
const finalAbortTimeout = 5000

const startTime = performance.now()
Expand Down
Loading
Loading