Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const insertTodo = async (username, todo, handleRemoveUserAuthentication) => {
try {
await userbase.insert(getDbName(username), { todo })
} catch (e) {
_errorHandler(e, 'insert todo', handleRemoveUserAuthentication)
}
}