Skip to content

Commit

Permalink
fixup! feat(collaborators): listen to member changes
Browse files Browse the repository at this point in the history
use pino instance from context
  • Loading branch information
anderssonjohan committed Jan 24, 2023
1 parent b1036cb commit 0735b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = (robot, _, Settings = require('./lib/settings')) => {
try {
deploymentConfig = await loadYamlFileSystem()
robot.log.debug(`deploymentConfig is ${JSON.stringify(deploymentConfig)}`)
const configManager = new ConfigManager(context, ref, robot.log)
const configManager = new ConfigManager(context, ref)
const runtimeConfig = await configManager.loadGlobalSettingsYaml()
const config = Object.assign({}, deploymentConfig, runtimeConfig)
robot.log.debug(`config for ref ${ref} is ${JSON.stringify(config)}`)
Expand Down
4 changes: 2 additions & 2 deletions lib/configManager.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const path = require('path')
const yaml = require('js-yaml')
module.exports = class ConfigManager {
constructor (context, ref, log) {
constructor (context, ref) {
this.context = context
this.ref = ref
this.log = log
this.log = context.log
}

/**
Expand Down

0 comments on commit 0735b35

Please sign in to comment.