Commit 3d9f0c3c authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 8172d9ce d87c1685
Pipeline #1260 passed with stages
in 11 minutes and 6 seconds
...@@ -56,7 +56,7 @@ class DataManager { ...@@ -56,7 +56,7 @@ class DataManager {
try { try {
const replays = await this.db.createQueryBuilder(CloudReplay_1.CloudReplay, "replay") const replays = await this.db.createQueryBuilder(CloudReplay_1.CloudReplay, "replay")
.where("exists (select id from cloud_replay_player where cloud_replay_player.cloudReplayId = replay.id and cloud_replay_player.key = :key)", { key }) .where("exists (select id from cloud_replay_player where cloud_replay_player.cloudReplayId = replay.id and cloud_replay_player.key = :key)", { key })
.orderBy("replay.id", "DESC") .orderBy("replay.date", "DESC")
.limit(10) .limit(10)
.leftJoinAndSelect("replay.players", "player") .leftJoinAndSelect("replay.players", "player")
.getMany(); .getMany();
......
...@@ -77,7 +77,7 @@ export class DataManager { ...@@ -77,7 +77,7 @@ export class DataManager {
try { try {
const replays = await this.db.createQueryBuilder(CloudReplay, "replay") const replays = await this.db.createQueryBuilder(CloudReplay, "replay")
.where("exists (select id from cloud_replay_player where cloud_replay_player.cloudReplayId = replay.id and cloud_replay_player.key = :key)", { key }) .where("exists (select id from cloud_replay_player where cloud_replay_player.cloudReplayId = replay.id and cloud_replay_player.key = :key)", { key })
.orderBy("replay.id", "DESC") .orderBy("replay.date", "DESC")
.limit(10) .limit(10)
.leftJoinAndSelect("replay.players", "player") .leftJoinAndSelect("replay.players", "player")
.getMany(); .getMany();
......
...@@ -56,7 +56,7 @@ __decorate([ ...@@ -56,7 +56,7 @@ __decorate([
CloudReplay = __decorate([ CloudReplay = __decorate([
typeorm_1.Entity({ typeorm_1.Entity({
orderBy: { orderBy: {
id: "DESC" date: "DESC"
} }
}) })
], CloudReplay); ], CloudReplay);
......
...@@ -5,7 +5,7 @@ import moment from "moment"; ...@@ -5,7 +5,7 @@ import moment from "moment";
@Entity({ @Entity({
orderBy: { orderBy: {
id: "DESC" date: "DESC"
} }
}) })
export class CloudReplay { export class CloudReplay {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment