Skip to content

Commit

Permalink
change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobussacchini committed Jun 13, 2024
1 parent 47d771c commit 8afc985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/JsonPlaceholderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function fetchUserById(id: string) {
const JsonPlaceholderService: KokosService = {
methods: {
"GET.ALL": getUsers,
"GET.USE": getUserDetail,
"USR.INF": getUserDetail,
"GET.IMG": getImages,
},
};
Expand Down Expand Up @@ -138,7 +138,7 @@ async function getUserDetail(
) {

const inputMap: { [key: string]: string } = _fun.INPUT ? parseKeyValueBetweenBrackets(_fun.INPUT) : {};
const userId = inputMap["USER_ID"]
const userId = inputMap["USR"]

if(userId !== undefined) {
const user: UserT = await fetchUserById(userId);
Expand Down

0 comments on commit 8afc985

Please sign in to comment.