Skip to content

Commit

Permalink
fix: is express method got error result (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Apr 15, 2022
1 parent 9c54f94 commit 7ca9359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/passport/src/util.ts
Expand Up @@ -8,7 +8,7 @@ export function getPassport() {

export function isExpressMode(): boolean {
return !!(
process.env['MIDWAY_PASSPORT_MODE'] === 'express' ??
process.env['MIDWAY_PASSPORT_MODE'] === 'express' ||
safeRequire('@midwayjs/express')
);
}

0 comments on commit 7ca9359

Please sign in to comment.