Updated user function
This commit is contained in:
parent
eda8826704
commit
d46b32b0d7
@ -36,7 +36,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
|
||||
}
|
||||
});
|
||||
const data = await response.data;
|
||||
if (response.status == 200) {
|
||||
if (response.status == 201) {
|
||||
const response2 = await axios.put(
|
||||
baseurl + '_users',
|
||||
{_id: 'org.couchdb.user:' + dbKey, name: dbKey, password: password, roles: [], type: 'user'},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user