Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 4f09ac3

Browse files
committed
Release challenge test
1 parent eff0717 commit 4f09ac3

17 files changed

+316
-162
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The following config parameters are supported, they are defined in `config/defau
5151
|AWS_ACCESS_KEY_ID | The Amazon certificate key to use when connecting. Use local dynamodb you can set fake value|FAKE_ACCESS_KEY_ID |
5252
|AWS_SECRET_ACCESS_KEY | The Amazon certificate access key to use when connecting. Use local dynamodb you can set fake value|FAKE_SECRET_ACCESS_KEY |
5353
|AWS_REGION | The Amazon certificate region to use when connecting. Use local dynamodb you can set fake value|FAKE_REGION |
54-
|IS_LOCAL | Use Amazon DynamoDB Local or server. |true |
54+
|IS_LOCAL | Use Amazon DynamoDB Local or server. |'false' |
5555

5656
KAFKA_OPTIONS should be object as described in https://github.com/oleksiyk/kafka#ssl
5757
For using with SSL, the options should be as

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ module.exports = {
9494
AWS_ACCESS_KEY_ID: process.env.AWS_ACCESS_KEY_ID || '',
9595
AWS_SECRET_ACCESS_KEY: process.env.AWS_SECRET_ACCESS_KEY || '',
9696
AWS_REGION: process.env.AWS_REGION || '',
97-
IS_LOCAL: process.env.IS_LOCAL || '',
97+
IS_LOCAL: process.env.IS_LOCAL || 'false',
9898
},
9999
};

configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following config parameters are supported, they are defined in `config/defau
3636
|AWS_ACCESS_KEY_ID | The Amazon certificate key to use when connecting. Use local dynamodb you can set fake value|FAKE_ACCESS_KEY_ID |
3737
|AWS_SECRET_ACCESS_KEY | The Amazon certificate access key to use when connecting. Use local dynamodb you can set fake value|FAKE_SECRET_ACCESS_KEY |
3838
|AWS_REGION | The Amazon certificate region to use when connecting. Use local dynamodb you can set fake value|FAKE_REGION |
39-
|IS_LOCAL | Use Amazon DynamoDB Local or server. |true |
39+
|IS_LOCAL | Use Amazon DynamoDB Local or server. |'false' |
4040

4141
KAFKA_OPTIONS should be object as described in https://github.com/oleksiyk/kafka#ssl
4242
For using with SSL, the options should be as

models/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dynamoose.AWS.config.update({
1919
region: config.DYNAMODB.AWS_REGION
2020
});
2121

22-
if (config.DYNAMODB.IS_LOCAL) {
22+
if (config.DYNAMODB.IS_LOCAL === 'true') {
2323
dynamoose.local();
2424
}
2525

services/CopilotPaymentService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* @author TCSCODER
1010
* @version 1.0
1111
*/
12+
const config = require('config');
1213
const _ = require('lodash');
1314
const Joi = require('joi');
14-
const config = require('config');
1515
const MarkdownIt = require('markdown-it');
1616
const moment = require('moment');
1717
const logger = require('../utils/logger');

services/EmailService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* @version 1.0
1010
*/
1111

12+
const config = require('config');
1213
const nodemailer = require('nodemailer');
1314
const Joi = require('joi');
14-
const config = require('config');
1515
const logger = require('../utils/logger');
1616

1717
// create reusable transporter object using the default SMTP transport

services/EventService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @author TCSCODER
99
* @version 1.1
1010
*/
11-
const _ = require('lodash');
1211
const config = require('config');
12+
const _ = require('lodash');
1313
const logger = require('../utils/logger');
1414
const gitHubService = require('./GithubService');
1515
const gitlabService = require('./GitlabService');

services/GithubService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* @version 1.0
1010
*/
1111

12+
const config = require('config');
1213
const _ = require('lodash');
1314
const Joi = require('joi');
1415
const GitHubApi = require('github');
15-
const config = require('config');
1616
const logger = require('../utils/logger');
1717
const errors = require('../utils/errors');
1818
const helper = require('../utils/helper');

services/GitlabService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* @version 1.0
1010
*/
1111

12+
const config = require('config');
1213
const _ = require('lodash');
1314
const Joi = require('joi');
14-
const config = require('config');
1515
const GitlabAPI = require('node-gitlab-api');
1616
const logger = require('../utils/logger');
1717
const errors = require('../utils/errors');

0 commit comments

Comments
 (0)