Files: fa119a00e0a13307d66a09f8c482ae107ba31bdb / update / async / publish.js
285 bytesRaw
1 | const buildUpdate = require('./build') |
2 | |
3 | module.exports = function (server) { |
4 | return function publishGatheringUpdate (gatheringKey, opts, cb) { |
5 | buildUpdate(server)(gatheringKey, opts, (err, update) => { |
6 | if (err) return cb(err) |
7 | |
8 | server.publish(update, cb) |
9 | }) |
10 | } |
11 | } |
12 |
Built with git-ssb-web