search.esl 270 B

12345678
  1. (lambda (id q)
  2. (./results id (object "query" q "results" (array)))
  3. (return (.then (/api "library/search" q)
  4. (lambda (results)
  5. (./results id (object "query" q "results" results)))
  6. (lambda (error)
  7. (console.log "search error" error error.stack)))))