mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 18:08:15 +03:00
16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
import db from "external/mongo/db";
|
|
import MigrateRecords from "./migrate";
|
|
import { DEFAULT_USER_SETTINGS } from "server/router/api/v1/auth/auth";
|
|
|
|
function ConvertFn(c: any) {
|
|
return { userID: c.id, preferences: DEFAULT_USER_SETTINGS };
|
|
}
|
|
|
|
(async () => {
|
|
await MigrateRecords(db["user-settings"], "users", ConvertFn);
|
|
|
|
process.exit(0);
|
|
})();
|