Skip to content

Let's use AI to Earn!

ppppinsteer

bulaienaofutuojiesenzhangb233df2923a9
diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx
index 2d70eb28..087a4f9e 100644
--- a/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx
+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx
@@ -122,7 +122,7 @@ const PinterestParams = memo(
setCreatingBoard(true);
const response = await createPinterestBoardApi(
{ name: newBoardName.trim() },
- pinterestAccount.account
+ pinterestAccount.id
);
if (response?.code === 0) {
diff --git a/src/components/PublishDialog/usePublishDialogData.ts b/src/components/PublishDialog/usePublishDialogData.ts
index 48fd1661..514ecf91 100644
--- a/src/components/PublishDialog/usePublishDialogData.ts
+++ b/src/components/PublishDialog/usePublishDialogData.ts
@@ -132,7 +132,7 @@ export const usePublishDialogData = create(
return;
}
- const res:any = await getPinterestBoardListApi({ page: 1, size: 100 }, pinterestAccount.account);
+ const res:any = await getPinterestBoardListApi({ page: 1, size: 100 }, pinterestAccount.id);
set({
pinterestBoards: res?.data?.list || [],
});