From a114b269cf6541875932a910973e88fa43b453f1 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 c8ad07098e141dd87db8ff70d4bbf5c7d75c7ef4) --- 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 79a50dae..5e725441 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 088c6cfc..070e7826 100644 --- a/src/store/subscriber-phonebook.js +++ b/src/store/subscriber-phonebook.js @@ -85,7 +85,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) } } }