refactor: 收口作品架更新回填规则
This commit is contained in:
@@ -479,6 +479,22 @@ export function hasUnreadDraftGenerationUpdates(
|
||||
});
|
||||
}
|
||||
|
||||
export function mergeBigFishWorkSummary(
|
||||
current: BigFishWorkSummary,
|
||||
updated: BigFishWorkSummary,
|
||||
): BigFishWorkSummary {
|
||||
return current.sourceSessionId === updated.sourceSessionId
|
||||
? updated
|
||||
: current;
|
||||
}
|
||||
|
||||
export function mergePuzzleWorkSummary(
|
||||
current: PuzzleWorkSummary,
|
||||
updated: PuzzleWorkSummary,
|
||||
): PuzzleWorkSummary {
|
||||
return current.profileId === updated.profileId ? updated : current;
|
||||
}
|
||||
|
||||
export function buildPendingBigFishWorks(
|
||||
pending: Record<string, PendingDraftShelfState> | undefined,
|
||||
existingItems: readonly BigFishWorkSummary[],
|
||||
|
||||
Reference in New Issue
Block a user