mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-29 10:28:04 +03:00
Fix orphans.ts not compiling
This commit is contained in:
@@ -67,7 +67,11 @@ export async function OrphanScore<T extends ImportTypes = ImportTypes>(
|
||||
* could be imported when parents were found).
|
||||
* ImportProcessingInfo on success.
|
||||
*/
|
||||
export async function ReprocessOrphan(orphan: OrphanScoreDocument, logger: KtLogger) {
|
||||
export async function ReprocessOrphan(
|
||||
orphan: OrphanScoreDocument,
|
||||
blacklist: string[],
|
||||
logger: KtLogger
|
||||
) {
|
||||
const ConverterFunction = Converters[orphan.importType] as ConverterFunction<
|
||||
ImportTypeDataMap[ImportTypes],
|
||||
ImportTypeContextMap[ImportTypes]
|
||||
@@ -113,5 +117,5 @@ export async function ReprocessOrphan(orphan: OrphanScoreDocument, logger: KtLog
|
||||
await db["orphan-scores"].remove({ orphanID: orphan.orphanID });
|
||||
|
||||
// else, import the orphan.
|
||||
return ProcessSuccessfulConverterReturn(orphan.userID, res, logger);
|
||||
return ProcessSuccessfulConverterReturn(orphan.userID, res, blacklist, logger);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user