mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update resource service
This commit is contained in:
@ -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"],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user