Files: c4f0656414375ade1e3c819a7b61d5808010551c / async / create.js
249 bytesRaw
1 | const isBook = require('../sync/isBook')() |
2 | // isBook is an odd case that doesn't need a client |
3 | |
4 | module.exports = function (client) { |
5 | return function (book, cb) { |
6 | if (!isBook(book)) return cb(isBook.errors) |
7 | |
8 | client.publish(book, cb) |
9 | } |
10 | } |
11 | |
12 |
Built with git-ssb-web