fix: set config file before accessing it

Closes #27
This commit is contained in:
Jovan Krunić
2019-03-11 15:45:32 +01:00
committed by Rainer Killinger
parent d110d60123
commit e17db521e2
4 changed files with 11 additions and 13 deletions

View File

@@ -13,9 +13,13 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCConfigFile} from '@openstapps/core';
import {Logger} from '@openstapps/logger';
import * as config from 'config';
import {BackendTransport} from './notification/BackendTransport';
export const mailer = BackendTransport.getTransportInstance();
export const logger = new Logger(mailer);
export const configFile: SCConfigFile = config.util.toObject();