From 8ed7454be08bbcd603d3f818a44e295bdff2685b Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Thu, 7 May 2026 10:29:43 +0200 Subject: [PATCH] Refactor to be similar to obs photos --- src/realmModels/ObservationSound.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/realmModels/ObservationSound.js b/src/realmModels/ObservationSound.js index 4000572a4..ce9c38e18 100644 --- a/src/realmModels/ObservationSound.js +++ b/src/realmModels/ObservationSound.js @@ -54,9 +54,12 @@ class ObservationSound extends Realm.Object { static mapSoundForAttachingToObs( observationID, observationSound ) { return { - "observation_sound[sound_id]": observationSound.id, - "observation_sound[observation_id]": observationID, - "observation_sound[uuid]": observationSound.uuid, + observation_sound: { + observation_id: observationID, + sound_id: observationSound.id, + // sound_id: soundId, + uuid: observationSound.uuid, + }, }; }