git ssb

0+

mixmix / scuttle-gathering



Tree: 9e830272505d9e2ac2dae4bf6e6b34e6e05ab905

Files: 9e830272505d9e2ac2dae4bf6e6b34e6e05ab905 / update / async / publish.js

285 bytesRaw
1const buildUpdate = require('./build')
2
3module.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