Skip to content

Commit

Permalink
Fixed warning in console
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed May 14, 2024
1 parent 757d930 commit c07eb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/madoc-ts/src/utility/gen-rsa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ export async function genRSA(force = false) {
// When this function is called dynamically, it's likely to cause some disruption.
// And all users will be logged out. This is only temporary, the service will be
// restarted (without downtime)
require('../gateway/api.server').api.invalidateJwt();
(await import('../gateway/api.server')).api.invalidateJwt();
}

0 comments on commit c07eb29

Please sign in to comment.