mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 19:38:13 +03:00
refactor: rename SearchGameSongsAndCharts to SearchSpecificGameSongsAndChart
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user