Author: Not specified Language: javascript
Description: (v19) Timestamp: 2018-06-12 13:35:24 +0000
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply
  1. return database
  2.     .getAllUsers()
  3.     .flatMap(to: HTTPStatus.self) { users in
  4.  
  5.     let user = users[0]
  6.     user.name = "Bob"
  7.        
  8.     return user.save().transform(to: HTTPStatus.noContent)
  9. }
  10.  
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply