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

This commit is contained in:
josetr
2023-12-10 18:37:29 +00:00
committed by GitHub
parent 8ab5baf78a
commit d9e29e8e45
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Updating note doesn't require loading author relationship

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