Skip to content

Instantly share code, notes, and snippets.

@gbielecki
Created January 9, 2018 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbielecki/ebb71026540ca2b0f691e0bec7c1a8c4 to your computer and use it in GitHub Desktop.
Save gbielecki/ebb71026540ca2b0f691e0bec7c1a8c4 to your computer and use it in GitHub Desktop.
import Syncano from 'syncano-server'
export default (ctx) => {
const {response,data} = Syncano(ctx)
if(ctx.args.wish){
data.wishes.where("cryptoId", ctx.args.wish).list()
.then(wishes=>{
response.json({wishes})
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment