Convertir JS en TS
update_password( password, user_token ) {
this.mongodb.collection( "users" ).updateOne( { [`password_recovery_tokens.${user_token}`]: {$exists: true} }, {$set : { password : crypto.createHash('sha256').update(password).digest('base64') } } )
}
Nutty Narwhal