Skip to content

Commit

Permalink
fix config lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Jankovsky committed May 19, 2016
1 parent 2cc17c4 commit c44294f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
'use strict';
const tgConfig = require('tg-config');
const tgConfig = require('tg-node-lib/lib/tg-config');

exports.handler = function(event, context, callback) {
var res;
if (typeof event.key === 'undefined') {
// grab the whole table
res = tgConfig.getAllConfig();
console.log(res);
callback(res[0], res[1]);
// dynamodb.scan({
// TableName: 'TokenGoodsConfig'
Expand All @@ -23,6 +24,7 @@ exports.handler = function(event, context, callback) {
} else {
// grab just a single key
res = tgConfig.getConfig(event.key);
console.log(res);
callback(res[0], res[1]);
// dynamodb.getItem({
// Key: {
Expand Down
6 changes: 2 additions & 4 deletions node_modules/tg-node-lib/lib/tg-config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions node_modules/tg-node-lib/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c44294f

Please sign in to comment.