Skip to content

Commit

Permalink
fix(services/telegram-notifier): set stroage name in config
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Dec 10, 2022
1 parent 9f59240 commit 010fa71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions services/telegram-notifier/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const config = {
},
storage: {
path: process.env.STORAGE_PATH ?? 'db',
name: 'notifier-storage',
},
telegramBot: {
token: telegramBotToken,
Expand Down
2 changes: 1 addition & 1 deletion services/telegram-notifier/src/lib/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import {AlwatrStorageEngine} from '@alwatr/storage-engine';
import {config} from './config';
import {MemberList} from './type';

export const storage = new AlwatrStorageEngine<MemberList>({name: 'notifier-storage', path: config.storage.path});
export const storage = new AlwatrStorageEngine<MemberList>(config.storage);

0 comments on commit 010fa71

Please sign in to comment.