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 {
try {
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 })
.orderBy("replay.id", "DESC")
.orderBy("replay.date", "DESC")
.limit(10)
.leftJoinAndSelect("replay.players", "player")
.getMany();
......
......@@ -77,7 +77,7 @@ export class DataManager {
try {
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 })
.orderBy("replay.id", "DESC")
.orderBy("replay.date", "DESC")
.limit(10)
.leftJoinAndSelect("replay.players", "player")
.getMany();
......
......@@ -56,7 +56,7 @@ __decorate([
CloudReplay = __decorate([
typeorm_1.Entity({
orderBy: {
id: "DESC"
date: "DESC"
}
})
], CloudReplay);
......
......@@ -5,7 +5,7 @@ import moment from "moment";
@Entity({
orderBy: {
id: "DESC"
date: "DESC"
}
})
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