Guest User

Untitled

a guest
Jan 18th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import Syncano from 'syncano-server'
  2.  
  3. export default (ctx) => {
  4. const {response,data} = Syncano(ctx)
  5. if(ctx.args.wish){
  6. data.wishes.where("cryptoId", ctx.args.wish).list()
  7. .then(wishes=>{
  8. response.json({wishes})
  9. })
  10. }
  11. }
Add Comment
Please, Sign In to add comment