Skip to content

Commit 0bd7997

Browse files
Merge pull request #85 from nodezoo/fix
update should be set correctly. Fixes #84
2 parents 541e4d6 + 7e079e5 commit 0bd7997

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/github.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = function (options) {
2828

2929
function cmdGet (msg, done) {
3030
let moduleName = msg.name
31+
3132
let cache = opts.cache
3233
let registry = opts.registry + moduleName
3334
let context = this
@@ -39,6 +40,7 @@ function cmdGet (msg, done) {
3940
}
4041

4142
if (github && !msg.update) {
43+
context.log.debug('Returned cached information: ', moduleName)
4244
return done(null, {ok: true, data: github.data$(github)})
4345
}
4446

@@ -195,7 +197,7 @@ function aliasGet (msg, done) {
195197
var seneca = this
196198
var payload = {name: msg.name}
197199

198-
seneca.act('role:github,cmd:get', payload, (err, res) => {
200+
seneca.act(`role:github, cmd:get, update: ${msg.update}`, payload, (err, res) => {
199201
if (err) {
200202
return done(null, {ok: false, err: err})
201203
}

0 commit comments

Comments
 (0)