Skip to content

Commit 0a91759

Browse files
committed
Move Express.User override so schema:export works
1 parent dd04022 commit 0a91759

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

@app/server/src/graphile.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ export interface OurGraphQLContext {
2323
logout(): Promise<void>;
2424
}
2525

26+
declare global {
27+
namespace Express {
28+
interface User {
29+
session_id: string;
30+
}
31+
}
32+
}
33+
2634
const TagsFilePlugin = makePgSmartTagsFromFilePlugin(
2735
// We're using JSONC for VSCode compatibility; also using an explicit file
2836
// path keeps the tests happy.

@app/server/src/middleware/installPassport.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ interface DbSession {
1010
session_id: string;
1111
}
1212

13-
declare global {
14-
namespace Express {
15-
interface User {
16-
session_id: string;
17-
}
18-
}
19-
}
20-
2113
export default async (app: Express) => {
2214
passport.serializeUser((sessionObject: DbSession, done) => {
2315
done(null, sessionObject.session_id);

0 commit comments

Comments
 (0)