Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit e181da2

Browse files
committed
Fixed conflict in ScoreLog
1 parent 7f8c281 commit e181da2

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/models/ScoreLog.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -293,33 +293,6 @@ private static function scorelogFromRow(Map<string, string> $row): ScoreLog {
293293
MultiTeam::invalidateMCRecords('TEAMS_FIRST_CAP'); // Invalidate Memcached MultiTeam data.
294294
}
295295

296-
public static async function genScoreLogUpdate(
297-
int $level_id,
298-
int $team_id,
299-
int $points,
300-
string $type,
301-
string $timestamp,
302-
): Awaitable<void> {
303-
$db = await self::genDb();
304-
await $db->queryf(
305-
'UPDATE scores_log SET ts = %s, level_id = %d, team_id = %d, points = %d, type = %s WHERE level_id = %d AND team_id = %d',
306-
$timestamp,
307-
$level_id,
308-
$team_id,
309-
$points,
310-
$type,
311-
$level_id,
312-
$team_id,
313-
);
314-
self::invalidateMCRecords(); // Invalidate Memcached ScoreLog data.
315-
Control::invalidateMCRecords('ALL_ACTIVITY'); // Invalidate Memcached Control data.
316-
MultiTeam::invalidateMCRecords('ALL_TEAMS'); // Invalidate Memcached MultiTeam data.
317-
MultiTeam::invalidateMCRecords('POINTS_BY_TYPE'); // Invalidate Memcached MultiTeam data.
318-
MultiTeam::invalidateMCRecords('LEADERBOARD'); // Invalidate Memcached MultiTeam data.
319-
MultiTeam::invalidateMCRecords('TEAMS_BY_LEVEL'); // Invalidate Memcached MultiTeam data.
320-
MultiTeam::invalidateMCRecords('TEAMS_FIRST_CAP'); // Invalidate Memcached MultiTeam data.
321-
}
322-
323296
public static async function genUpdateScoreLogBonus(
324297
int $level_id,
325298
int $team_id,

0 commit comments

Comments
 (0)