MT#62983 bugfix apiGet and apiPost

apiGet and apiPost assign the full options
object to the variable path
rather then options.path
In this commit we fix the bug.

Change-Id: I2379c4038a7fb70183ad2c6a25252413895122ad
(cherry picked from commit 38c2f37c1a)
mr12.5
Debora Crescenzo 1 year ago committed by Crescenzo Debora
parent e20369dc8a
commit 3a337bb599

@ -404,7 +404,7 @@ export async function apiGet (options = {
resourceId: undefined, resourceId: undefined,
config: {} config: {}
}) { }) {
let path = options let path = options.path
if (options.resource && options.resourceId) { if (options.resource && options.resourceId) {
path = `api/${options.resource}/${options.resourceId}` path = `api/${options.resource}/${options.resourceId}`
} else if (options.resource) { } else if (options.resource) {
@ -417,7 +417,7 @@ export async function apiPost (options = {
data: undefined, data: undefined,
config: {} config: {}
}) { }) {
let path = options let path = options.path
if (options.resource) { if (options.resource) {
path = `${options.resource}/` path = `${options.resource}/`
} }

Loading…
Cancel
Save