feat(streams): finalised routes and tests (integration & service) for streams

This commit is contained in:
Dimitrie Stefanescu
2020-04-08 19:32:26 +01:00
parent 94b5976bd2
commit 4ecc313eca
8 changed files with 77 additions and 40 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const Keys = ( ) => knex( 'api_token' )
module.exports = {
createUser: async ( user ) => {
delete user.id
user.id = crs( { length: 10 } )
if ( user.password ) {
user.password_digest = await bcrypt.hash( user.password, 10 )