diff --git a/netlify/functions/users/users.ts b/netlify/functions/users/users.ts index 0eac125..0c84950 100644 --- a/netlify/functions/users/users.ts +++ b/netlify/functions/users/users.ts @@ -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'},