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