Updated user function

This commit is contained in:
Michael Mainguy 2023-10-13 13:19:49 -05:00
parent eda8826704
commit d46b32b0d7

View File

@ -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'},