Skip to content

Commit 64b6b03

Browse files
committed
fix: handling of some secret keys
1 parent 0184d0b commit 64b6b03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/notifier/TelegramNotifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default class TelegramNotifier implements INotifier {
7272
private get client(): AxiosInstance {
7373
if (!this.#client) {
7474
this.#client = axios.create({
75-
baseURL: `https://api.telegram.org/bot${this.config.telegramBotToken!}/sendMessage`,
75+
baseURL: `https://api.telegram.org/bot${this.config.telegramBotToken?.value}/sendMessage`,
7676
headers: {
7777
"Content-Type": "application/json",
7878
},

src/services/swap/oneInch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class OneInch extends BaseSwapper implements ISwapper {
3838
this.apiClient = axios.create({
3939
baseURL,
4040
headers: {
41-
Authorization: `Bearer ${this.config.oneInchApiKey}`,
41+
Authorization: `Bearer ${this.config.oneInchApiKey.value}`,
4242
accept: "application/json",
4343
},
4444
});

0 commit comments

Comments
 (0)