Updated user function
This commit is contained in:
parent
980024dfec
commit
700330767f
@ -20,11 +20,19 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
const auth = 'admin:stM8Lnm@Cuf-tWZHv';
|
||||||
|
const authToken = Buffer.from(auth).toString('base64');
|
||||||
|
|
||||||
const response = await axios.put(
|
const response = await axios.put(
|
||||||
baseurl + dbKey,
|
baseurl + dbKey,
|
||||||
null,
|
null,
|
||||||
{headers: {'Content-Type': 'application/json', 'Accept': 'application/json'}});
|
{
|
||||||
|
headers: {
|
||||||
|
'Authorization': 'Basic ' + authToken,
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Accept': 'application/json'
|
||||||
|
}
|
||||||
|
});
|
||||||
const data = await response.data;
|
const data = await response.data;
|
||||||
return {
|
return {
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user