Skip to content

Commit 6236ed6

Browse files
committed
bug: fixes for leaving lineup , and reset round deleting too much data
1 parent 2abf6fe commit 6236ed6

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

src/game-server-node/game-server-node.controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ export class GameServerNodeController {
168168
},
169169
});
170170

171-
172171
if (settings_by_pk && settings_by_pk.value !== pluginVersion) {
173172
await this.queue.add(DedicatedServersPluginOutOfDate.name, {});
174173
}
@@ -213,7 +212,7 @@ export class GameServerNodeController {
213212
value: true,
214213
},
215214
});
216-
215+
217216
if (settings_by_pk && settings_by_pk.value !== pluginVersion) {
218217
await this.queue.add(DedicatedServersPluginOutOfDate.name, {});
219218
}

src/matches/events/MatchMapResetRoundEvent.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export default class MatchMapResetRoundEvent extends MatchEventProcessor<{
5858
round: {
5959
_gte: statsRound,
6060
},
61+
match_map_id: {
62+
_eq: this.data.match_map_id,
63+
},
6164
},
6265
},
6366
__typename: true,

src/matches/matches.controller.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,13 @@ export class MatchesController {
867867
steam_id: {
868868
_eq: data.user.steam_id,
869869
},
870+
lineup: {
871+
v_match_lineup: {
872+
match_id: {
873+
_eq: data.match_id,
874+
},
875+
},
876+
},
870877
},
871878
},
872879
returning: {

src/system/system.service.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,18 @@ export class SystemService {
207207
template: {
208208
metadata: {
209209
annotations: {
210-
"kubectl.kubernetes.io/restartedAt": new Date().toISOString()
211-
}
212-
}
213-
}
214-
}
210+
"kubectl.kubernetes.io/restartedAt": new Date().toISOString(),
211+
},
212+
},
213+
},
214+
},
215215
},
216216
undefined,
217217
undefined,
218218
undefined,
219219
undefined,
220220
undefined,
221-
{ headers: { 'Content-Type': 'application/strategic-merge-patch+json' } }
221+
{ headers: { "Content-Type": "application/strategic-merge-patch+json" } },
222222
);
223223

224224
this.logger.log(`Successfully restarted deployment ${deploymentName}`);

0 commit comments

Comments
 (0)