Files: 9e830272505d9e2ac2dae4bf6e6b34e6e05ab905 / 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