Files: ca77c54d481c41a3dbb9f2c43454de9dd9dde4c1 / poll / async / publishUpdatedClosingTime.js
341 bytesRaw
1 | const buildUpdatedClosingTime = require('../async/buildUpdatedClosingTime') |
2 | |
3 | module.exports = function (server) { |
4 | return function publishUpdatedClosingTime ({ poll, closesAt }, cb) { |
5 | buildUpdatedClosingTime(server)({ poll, closesAt }, (err, position) => { |
6 | if (err) return cb(err) |
7 | |
8 | server.publish(position, cb) |
9 | }) |
10 | } |
11 | } |
12 |
Built with git-ssb-web