mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 17:58:42 +03:00
fix: someeeeone didn't run the linter huh
This commit is contained in:
Vendored
+9
-6
@@ -165,8 +165,9 @@ const db = {
|
||||
"api-clients": monkDB.get<TachiAPIClientDocument>("api-clients"),
|
||||
|
||||
// i've inlined this one because i don't see it appearing anywhere else.
|
||||
"oauth2-auth-codes":
|
||||
monkDB.get<{ code: string; userID: integer; createdOn: number }>("oauth2-auth-codes"),
|
||||
"oauth2-auth-codes": monkDB.get<{ code: string; userID: integer; createdOn: number }>(
|
||||
"oauth2-auth-codes"
|
||||
),
|
||||
|
||||
"fer-settings": monkDB.get<FervidexSettingsDocument>("fer-settings"),
|
||||
"orphan-chart-queue": monkDB.get<OrphanChart>("orphan-chart-queue"),
|
||||
@@ -176,10 +177,12 @@ const db = {
|
||||
createdOn: number;
|
||||
}>("password-reset-codes"),
|
||||
"class-achievements": monkDB.get<ClassAchievementDocument>("class-achievements"),
|
||||
"score-blacklist":
|
||||
monkDB.get<{ scoreID: string; userID: integer; score: ScoreDocument }>("score-blacklist"),
|
||||
"verify-email-codes":
|
||||
monkDB.get<{ userID: integer; code: string; email: string }>("verify-email-codes"),
|
||||
"score-blacklist": monkDB.get<{ scoreID: string; userID: integer; score: ScoreDocument }>(
|
||||
"score-blacklist"
|
||||
),
|
||||
"verify-email-codes": monkDB.get<{ userID: integer; code: string; email: string }>(
|
||||
"verify-email-codes"
|
||||
),
|
||||
"recent-folder-views": monkDB.get<RecentlyViewedFolderDocument>("recent-folder-views"),
|
||||
"milestone-sets": monkDB.get<MilestoneSetDocument>("milestone-sets"),
|
||||
migrations: monkDB.get<MigrationDocument>("migrations"),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { VERSION_INFO } from "lib/constants/version";
|
||||
import CreateLogCtx from "lib/logger/logger";
|
||||
import { Environment, ServerConfig } from "lib/setup/config";
|
||||
import { asyncExec } from "utils/misc";
|
||||
@@ -5,7 +6,6 @@ import fs from "fs/promises";
|
||||
import os from "os";
|
||||
import path from "path";
|
||||
import type { Game } from "tachi-common";
|
||||
import { VERSION_INFO } from "lib/constants/version";
|
||||
|
||||
const logger = CreateLogCtx(__filename);
|
||||
|
||||
@@ -189,12 +189,15 @@ export async function PullDatabaseSeeds() {
|
||||
// there were expletives below this comment, but I have removed them.
|
||||
const { stdout } = await asyncExec(
|
||||
`git clone --sparse --depth=1 "${ServerConfig.SEEDS_CONFIG.REPO_URL}" -b "${
|
||||
Environment.nodeEnv === "production" ? `release/${VERSION_INFO.major}.${VERSION_INFO.minor}` : "staging"
|
||||
Environment.nodeEnv === "production"
|
||||
? `release/${VERSION_INFO.major}.${VERSION_INFO.minor}`
|
||||
: "staging"
|
||||
}" '${seedsDir}';
|
||||
|
||||
|
||||
cd '${seedsDir}';
|
||||
git sparse-checkout add database-seeds`
|
||||
|
||||
// ^ now that we're in a monorepo, we only want the seeds.
|
||||
);
|
||||
|
||||
|
||||
@@ -389,7 +389,7 @@ if (require.main === module) {
|
||||
.then(() => process.exit(0))
|
||||
.catch((err) => {
|
||||
logger.error(err, () => {
|
||||
process.exit(1)
|
||||
})
|
||||
process.exit(1);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -52,8 +52,6 @@ const userSessionMiddleware = expressSession({
|
||||
|
||||
const app: Express = express();
|
||||
|
||||
|
||||
|
||||
if (Environment.nodeEnv !== "production" && IsNonEmptyString(ServerConfig.CLIENT_DEV_SERVER)) {
|
||||
logger.warn(`Enabling CORS requests from ${ServerConfig.CLIENT_DEV_SERVER}.`, {
|
||||
bootInfo: true,
|
||||
|
||||
@@ -89,7 +89,7 @@ export async function UpdateGameSongIDCounter(game: "bms" | "pms") {
|
||||
sort: { id: -1 },
|
||||
projection: { id: 1 },
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
if (!latestSong) {
|
||||
logger.warn(
|
||||
@@ -97,7 +97,7 @@ export async function UpdateGameSongIDCounter(game: "bms" | "pms") {
|
||||
);
|
||||
}
|
||||
|
||||
let largestSongID = latestSong?.id ?? 0;
|
||||
const largestSongID = latestSong?.id ?? 0;
|
||||
|
||||
await db.counters.update(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user