Commit 5acb9b9f authored by nanahira's avatar nanahira

Merge branch 'database' into databasen

parents 52396ab8 787e352d
......@@ -83,7 +83,7 @@ class DataManager {
if (!minQuery || !maxQuery) {
return null;
}
const [maxId, minId] = [minQuery, maxQuery].map(query => parseInt(query.value));
const [minId, maxId] = [minQuery, maxQuery].map(query => parseInt(query.value));
const targetId = Math.floor((maxId - minId) * Math.random()) + minId;
return await this.db.createQueryBuilder(CloudReplay_1.CloudReplay, "replay")
.where("replay.id >= :targetId", { targetId })
......
......@@ -106,7 +106,7 @@ export class DataManager {
if(!minQuery || !maxQuery) {
return null;
}
const [maxId, minId] = [minQuery, maxQuery].map(query => parseInt(query.value));
const [minId, maxId] = [minQuery, maxQuery].map(query => parseInt(query.value));
const targetId = Math.floor((maxId - minId) * Math.random()) + minId;
return await this.db.createQueryBuilder(CloudReplay, "replay")
.where("replay.id >= :targetId", {targetId})
......
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