Skip to content

Commit 1acb5d9

Browse files
committed
added webpack-config, updated package.json
1 parent 3f551af commit 1acb5d9

File tree

6 files changed

+6016
-2235
lines changed

6 files changed

+6016
-2235
lines changed

aws/redis.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ bluebird.promisifyAll(redis.RedisClient.prototype);
66
bluebird.promisifyAll(redis.Multi.prototype);
77

88
const createRedisClient = (endpoint) => {
9-
const clientObj = redis.createClient(false, endpoint, {
10-
no_ready_check: true,
11-
});
9+
const clientObj = redis.createClient(false, endpoint, {
10+
no_ready_check: true,
11+
});
1212

13-
clientObj.on('error', (err) => {
14-
console.log(`Error while creating redis client: ${err}`);
15-
});
13+
clientObj.on('error', (err) => {
14+
console.log(`Error while creating redis client: ${err}`);
15+
});
1616

17-
return clientObj;
17+
return clientObj;
1818
};
1919

2020
const client = createRedisClient(currentRedisEndpoint);
2121

2222

2323
module.exports = {
24-
client,
24+
client,
2525
};

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const saveProductDataResponse = (event, cb) => {
1616
saveProductData.save(body).then(resp => cb(null, util.response('done')));
1717
};
1818

19-
module.exports = {
19+
export {
2020
getProductDataResponse,
2121
saveProductDataResponse,
2222
};

lib/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const response = message => ({
77
},
88
});
99

10-
module.exports = {
10+
export {
1111
keyName,
1212
response,
1313
};

0 commit comments

Comments
 (0)