fix some problems

This commit is contained in:
kkzzhizhou 2021-11-30 09:25:31 +08:00
parent 300f44503b
commit 4010f37f68
6 changed files with 24 additions and 19 deletions

View file

@ -95,7 +95,7 @@ export async function updateTask(username: string, credentials: string, id: stri
"x-api-user": username,
"x-api-key": credentials,
},
body: type === 'reward' ? JSON.stringify({id: id,type: type, text: title,notes: notes, coin: coin}):JSON.stringify({id: id,type: type, text: title,notes: notes})
body: type === 'reward' ? JSON.stringify({id: id,type: type, text: title,notes: notes, value: coin}):JSON.stringify({id: id,type: type, text: title,notes: notes})
})
return(response)
}