diff --git a/keyserver/src/utils/olm-utils.js b/keyserver/src/utils/olm-utils.js --- a/keyserver/src/utils/olm-utils.js +++ b/keyserver/src/utils/olm-utils.js @@ -1,14 +1,14 @@ // @flow -import olmConfig from '../../secrets/olm_config'; +import { importJSON } from './import-json'; type OlmConfig = { +picklingKey: string, +pickledAccount: string, }; -function getOlmConfig(): OlmConfig { - return olmConfig; +async function getOlmConfig(): Promise { + return await importJSON('secrets/olm_config'); } export { getOlmConfig };