feat: merge market core user id flow

This commit is contained in:
2026-05-11 10:22:45 +08:00
parent 2e049ef718
commit 1de508f2c7
14 changed files with 90 additions and 4 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ export interface BatchPayload {
authors: Array<{
authorId: string;
authorName: string;
authorUid?: string;
}>;
batchName: string;
createdAt: string;
@@ -37,7 +38,8 @@ export function createBatchPayload(options: {
return {
authors: options.records.map((record) => ({
authorId: record.authorId,
authorName: record.authorName
authorName: record.authorName,
...(record.coreUserId ? { authorUid: record.coreUserId } : {})
})),
batchName,
createdAt: options.createdAt,