From 363229e5c8b7b2ce08ec94d42dcc32b9a8f39f2d Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Tue, 17 Feb 2026 09:51:27 +0000 Subject: [PATCH] MT#64432 Fix typo * Fix missing subscriber_id parameter in setSharedValue() * rename "options" to "data" for consistency Change-Id: Ice57d3cb4a2318055c574ea9169a9cf49b9561c5 (cherry picked from commit df136f71aad5cb6ee7945cf3e7492cfefc653ffe) (cherry picked from commit c2e3179bde1afa4a49e3a908f3a51df4fb92afdf) --- src/api/subscriber-phonebook.js | 10 +++++----- src/store/subscriber-phonebook.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/subscriber-phonebook.js b/src/api/subscriber-phonebook.js index f7c83982..b8de30d9 100644 --- a/src/api/subscriber-phonebook.js +++ b/src/api/subscriber-phonebook.js @@ -32,16 +32,16 @@ export async function getEntryById (subscriberId, id) { }) } -export async function getPhonebook (options) { +export async function getPhonebook (data) { return getList({ - path: `api/v2/subscribers/${options.subscriber_id}/phonebook`, - params: options + path: `api/v2/subscribers/${data.subscriber_id}/phonebook`, + params: data }) } -export function setSharedValue (subscriberId, phonebookId, value) { +export function setSharedValue (data, value) { return patchReplace({ - path: `api/v2/subscribers/${subscriberId}/phonebook/${phonebookId}`, + path: `api/v2/subscribers/${data.subscriber_id}/phonebook/${data.id}`, fieldPath: 'shared', value }) diff --git a/src/store/subscriber-phonebook.js b/src/store/subscriber-phonebook.js index eee2fdce..4a616bef 100644 --- a/src/store/subscriber-phonebook.js +++ b/src/store/subscriber-phonebook.js @@ -87,7 +87,7 @@ export default { async updateSharedValue (context, row) { const newValue = !row.shared context.commit('setSharedValue', { id: row.id, value: newValue }) - await setSharedValue(row.id, newValue) + await setSharedValue(row, newValue) } } }