mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
fix: migrate to fix incorrect fervidex userIntent
This commit is contained in:
@@ -3,6 +3,7 @@ import UGPTRivalsMigration from "./migrations/add-rivals-to-ugpt";
|
||||
import FixUndefinedBMSData from "./migrations/fix-undefined-bms-data";
|
||||
import JoinINFCastHourCharts from "./migrations/join-inf-casthour-charts";
|
||||
import JoinINFCastHourSongs from "./migrations/join-inf-casthour-songs";
|
||||
import MarkFervidexAsWithoutIntent from "./migrations/mark-fervidex-as-without-intent";
|
||||
import NullLR2HookFailedBPs from "./migrations/null-lr2hook-failed-bps";
|
||||
import RecalcBrokenIIDXNotecounts from "./migrations/recalc-broken-iidx-notecounts";
|
||||
import RemoveIIDXBeginners from "./migrations/remove-iidx-beginners";
|
||||
@@ -43,7 +44,8 @@ if (Environment.nodeEnv !== "test") {
|
||||
RemoveIIDXBeginners,
|
||||
UpdateJubeatPreferredTables,
|
||||
JoinINFCastHourCharts,
|
||||
JoinINFCastHourSongs
|
||||
JoinINFCastHourSongs,
|
||||
MarkFervidexAsWithoutIntent
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import db from "external/mongo/db";
|
||||
import type { Migration } from "utils/types";
|
||||
|
||||
const migration: Migration = {
|
||||
id: "mark-fervidex-as-without-intent",
|
||||
up: async () => {
|
||||
await db.imports.update(
|
||||
{
|
||||
importType: "ir/fervidex",
|
||||
},
|
||||
{
|
||||
userIntent: false,
|
||||
}
|
||||
);
|
||||
},
|
||||
down: () => {
|
||||
throw new Error(`Unable to revert transaction.`);
|
||||
},
|
||||
};
|
||||
|
||||
export default migration;
|
||||
Reference in New Issue
Block a user