Skip to content

Commit

Permalink
fix(rest): app setup config (#262)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra authored Mar 30, 2024
1 parent 4b2a7fd commit d09b153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest/src/setup/setupApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { createRestAgent } from './createRestAgent'
*/
export async function setupApp(config: CredoRestSetupAppConfig) {
const agent = config.agent instanceof Agent ? config.agent : await createRestAgent(config.agent)
container.registerInstance(Agent, config.agent as Agent)
container.registerInstance(Agent, agent as Agent)

const app = config.baseApp ?? express()
if (config.enableCors) app.use(cors())
Expand Down

0 comments on commit d09b153

Please sign in to comment.