Skip to content

Commit

Permalink
Fix when updating an API entry
Browse files Browse the repository at this point in the history
  • Loading branch information
adri9valle committed Jul 26, 2019
1 parent fc9e99d commit b675bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/update-configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class UpdateConfigurationFile {
throw new Error(`Host ${id} not found.`);
}
const regex = this.composeRegex(target);
const result = data.replace(regex, `\n${this.composeHost(host)}`);
const result = data.replace(regex, `\n${this.composeHost(host, id)}`);
await fs.writeFileSync(file, result, 'utf8');
}
this.busy = false;
Expand Down

0 comments on commit b675bac

Please sign in to comment.