Skip to content

Commit

Permalink
fixed current
Browse files Browse the repository at this point in the history
  • Loading branch information
philipheinser committed Jan 15, 2015
1 parent 8f076fd commit d8911f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ app.use(function* () {
var indexkey;

if (this.request.query.index_key) {
indexkey = process.env.APP_NAME +':'+this.request.query.index_key;
indexkey = process.env.APP_NAME +':'+ this.request.query.index_key;
} else {
indexkey = yield dbCo.get(process.env.APP_NAME +':current');
}
var index = yield dbCo.get(current);
var index = yield dbCo.get(indexkey);

this.body = index || '';
});
Expand Down

0 comments on commit d8911f4

Please sign in to comment.