mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 03:48:14 +03:00
Add debug message for handling orphan document.
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@
|
||||
"express-async-errors": "3.1.1",
|
||||
"express-rate-limit": "5.2.6",
|
||||
"express-session": "1.17.2",
|
||||
"fast-json-stable-hash": "1.0.2",
|
||||
"fast-json-stable-hash": "1.0.3",
|
||||
"fast-xml-parser": "3.19.0",
|
||||
"helmet": "4.6.0",
|
||||
"json5": "2.2.0",
|
||||
|
||||
Generated
+4
-4
@@ -42,7 +42,7 @@ specifiers:
|
||||
express-rate-limit: 5.2.6
|
||||
express-request-mock: 3.1.0
|
||||
express-session: 1.17.2
|
||||
fast-json-stable-hash: 1.0.2
|
||||
fast-json-stable-hash: 1.0.3
|
||||
fast-xml-parser: 3.19.0
|
||||
helmet: 4.6.0
|
||||
json5: 2.2.0
|
||||
@@ -87,7 +87,7 @@ dependencies:
|
||||
express-async-errors: 3.1.1_express@4.17.1
|
||||
express-rate-limit: 5.2.6
|
||||
express-session: 1.17.2
|
||||
fast-json-stable-hash: 1.0.2
|
||||
fast-json-stable-hash: 1.0.3
|
||||
fast-xml-parser: 3.19.0
|
||||
helmet: 4.6.0
|
||||
json5: 2.2.0
|
||||
@@ -2777,8 +2777,8 @@ packages:
|
||||
micromatch: 4.0.4
|
||||
dev: true
|
||||
|
||||
/fast-json-stable-hash/1.0.2:
|
||||
resolution: {integrity: sha512-p7Sr7IjiqJkFuRx1P6tYVTDwBf+ZfXyU2l3bv5XkBhiey5G3fHzBUJiEnpIlAZjGedXpEJM/V2SV+hD0pOnmmg==}
|
||||
/fast-json-stable-hash/1.0.3:
|
||||
resolution: {integrity: sha512-iLK3Tq2J/KbiUn/5OHyhxikHqzwFXSM2e803Dp2JtBdQjsCVuZwWvL+WqWXPPRUEuDX4c0kqID1SU84RCfxs3A==}
|
||||
dev: false
|
||||
|
||||
/fast-json-stable-stringify/2.1.0:
|
||||
|
||||
@@ -37,10 +37,12 @@ export async function OrphanScore<T extends ImportTypes = ImportTypes>(
|
||||
const orphan: Pick<OrphanScoreDocument, "importType" | "data" | "context" | "userID"> = {
|
||||
importType,
|
||||
data,
|
||||
context: context,
|
||||
context,
|
||||
userID,
|
||||
};
|
||||
|
||||
logger.debug("Orphaning document", orphan);
|
||||
|
||||
const orphanID = `O${fjsh.hash(orphan, "sha256")}`;
|
||||
|
||||
const exists = await db["orphan-scores"].findOne({ orphanID });
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Lamps } from "tachi-common";
|
||||
import { DeleteUndefinedProps } from "utils/misc";
|
||||
import { FindChartOnInGameIDVersion } from "utils/queries/charts";
|
||||
import { FindSongOnID } from "utils/queries/songs";
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user