mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-02-09 17:51:02 +00:00
read config also from environment variables, merge on top of json file config
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = {
|
||||
request
|
||||
.post('https://koodiklinikka.slack.com/api/users.admin.invite')
|
||||
.field('email', email)
|
||||
.field('channels', config.slack.public_channel)
|
||||
.field('channels', config.slack.publicChannel)
|
||||
.field('token', config.slack.token)
|
||||
.field('set_active', 'true')
|
||||
.end(function(error, response){
|
||||
@@ -42,7 +42,7 @@ module.exports = {
|
||||
request
|
||||
.post('https://koodiklinikka.slack.com/api/chat.postMessage')
|
||||
.field('text', message)
|
||||
.field('channel', config.slack.private_channel)
|
||||
.field('channel', config.slack.privateChannel)
|
||||
.field('token', config.slack.token)
|
||||
.end(function(error, response){
|
||||
if(error) {
|
||||
|
||||
Reference in New Issue
Block a user