Skip to content

Commit

Permalink
fix(notifications): create DB upon startup (janus-idp#1096)
Browse files Browse the repository at this point in the history
FLPATH-875
https://issues.redhat.com/browse/FLPATH-875

Signed-off-by: Yaron Dayagi <[email protected]>
  • Loading branch information
ydayagi authored Jan 22, 2024
1 parent 3ad236d commit 10ff235
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/notifications-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ import { PluginEnvironment } from '../types';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
// workaround for creating the database when client is not sqlite
const dbClient = await env.database.getClient()
dbClient.destroy()
const catalogClient = new CatalogClient({ discoveryApi: env.discovery });
const dbConfig = env.config.getConfig('backend.database');
// Following is optional
Expand Down

0 comments on commit 10ff235

Please sign in to comment.