refactor: rename SearchGameSongsAndCharts to SearchSpecificGameSongsAndChart

This commit is contained in:
zkldi
2022-06-05 14:29:31 +01:00
parent ac7929d28a
commit a0af4b48d5
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ export function SearchSpecificGameSongs(
return SearchCollection(db.songs[game], search, {}, limit);
}
export async function SearchGameSongsAndCharts(
export async function SearchSpecificGameSongsAndCharts(
game: Game,
search: string,
playtype?: Playtype,
@@ -1,6 +1,6 @@
import { Router } from "express";
import db from "external/mongo/db";
import { SearchGameSongsAndCharts } from "lib/search/search";
import { SearchSpecificGameSongsAndCharts } from "lib/search/search";
import { AggressiveRateLimitMiddleware } from "server/middleware/rate-limiter";
import { GetGamePTConfig } from "tachi-common";
import { GetRelevantSongsAndCharts } from "utils/db";
@@ -29,7 +29,7 @@ router.get("/", async (req, res) => {
});
}
const { songs: allSongs, charts: allCharts } = await SearchGameSongsAndCharts(
const { songs: allSongs, charts: allCharts } = await SearchSpecificGameSongsAndCharts(
game,
req.query.search,
playtype
@@ -1,6 +1,6 @@
import { Router } from "express";
import db from "external/mongo/db";
import { SearchGameSongsAndCharts } from "lib/search/search";
import { SearchSpecificGameSongsAndCharts } from "lib/search/search";
import { HyperAggressiveRateLimitMiddleware } from "server/middleware/rate-limiter";
import { GetRelevantSongsAndCharts } from "utils/db";
import { GetUGPT } from "utils/req-tachi-data";
@@ -23,7 +23,7 @@ router.get("/", async (req, res) => {
});
}
const { songs: allSongs, charts: allCharts } = await SearchGameSongsAndCharts(
const { songs: allSongs, charts: allCharts } = await SearchSpecificGameSongsAndCharts(
game,
req.query.search,
playtype