chore: update resource service

This commit is contained in:
Steven
2023-10-03 23:44:14 +08:00
parent 2e82ba50f2
commit 7dc4bc5714
13 changed files with 832 additions and 218 deletions

View File

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