chore: fix update resource api

This commit is contained in:
Steven
2023-10-21 12:41:55 +08:00
parent c42af95dd3
commit bfd2dbfee2
13 changed files with 375 additions and 281 deletions

View File

@ -247,8 +247,8 @@ const MemoEditor = (props: Props) => {
uploadedResourceList.push(resource);
if (memoId) {
await resourceStore.updateResource({
id: resource.id,
resource: Resource.fromPartial({
id: resource.id,
memoId,
}),
updateMask: ["memo_id"],