Skip to content

Commit

Permalink
Fix view
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr-Kuchinskyi committed Jun 13, 2024
1 parent beae16f commit 1732e70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/src/migration/1713372155154-CreateRoundsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class CreateRoundsView1713372155154 implements MigrationInterface {
p.jackpot_amount,
w.is_finished,
p.player_account_hash as winner_account_hash,
last_play.deploy_hash as last_play_deploy_hash,
p.deploy_hash as last_play_deploy_hash,
p.timestamp as ended_at
from plays p
join (
Expand All @@ -21,8 +21,7 @@ export class CreateRoundsView1713372155154 implements MigrationInterface {
count(*) as plays_num
from plays
group by round_id
) w on w.play_id = p.play_id
join plays last_play on last_play.play_id = p.play_id;
) w on w.play_id = p.play_id;
`);
}

Expand Down

0 comments on commit 1732e70

Please sign in to comment.