git ssb

0+

mixmix / scuttle-gathering



Tree: 395d9a4d0f8d253a639f2740e619cdc11a4a873a

Files: 395d9a4d0f8d253a639f2740e619cdc11a4a873a / 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