fix(medusa): Updating note doesn't require loading author relationship (#5825)

This commit is contained in:
josetr authored and GitHub committed 2023-12-10 19:37:29 +01:00
1 parent 8ab5baf78a
commit d9e29e8e45
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Updating note doesn't require loading author relationship
+1 -1
View File
@@ -156,7 +156,7 @@ class NoteService extends TransactionBaseService {
return await this.atomicPhase_(async (manager) => {
const noteRepo = manager.withRepository(this.noteRepository_)
const note = await this.retrieve(noteId, { relations: ["author"] })
const note = await this.retrieve(noteId)
note.value = value