@dhedge/backend-flatcoin-core 0.2.87 → 0.2.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,20 +27,14 @@ let ConfigService = class ConfigService {
27
27
  }
28
28
  }
29
29
  async refreshConfigs() {
30
- this.configRepository
31
- .getById(1)
32
- .then((result) => {
33
- if (!result) {
34
- throw new Error('failed to load multichain config from db');
35
- }
36
- else {
37
- this.baseConfig = result;
38
- this.logger.log(`multichain config loaded ${result}`);
39
- }
40
- })
41
- .catch((er) => {
42
- throw new Error(`failed to load multichain config ${er}`);
43
- });
30
+ const result = await this.configRepository.getById(1);
31
+ if (!result) {
32
+ throw new Error('failed to load multichain config from db');
33
+ }
34
+ else {
35
+ this.baseConfig = result;
36
+ this.logger.log(`multichain config loaded ${result}`);
37
+ }
44
38
  }
45
39
  };
46
40
  exports.ConfigService = ConfigService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/backend-flatcoin-core",
3
- "version": "0.2.87",
3
+ "version": "0.2.88",
4
4
  "description": "Backend Flatcoin Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",