fix(express-session): remove faulty touch callback (#36203)

* fix(express-session): remove faulty `touch` callback

* chore: fix test
This commit is contained in:
Simen Bekkhus 2019-06-19 19:06:03 +02:00 committed by Daniel Rosenwasser
parent 9cf5c98aa8
commit 12293bdac8
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ declare global {
destroy(callback: (err: any) => void): void;
reload(callback: (err: any) => void): void;
save(callback: (err: any) => void): void;
touch(callback: (err: any) => void): void;
touch(): void;
cookie: SessionCookie;
}
}

View File

@ -36,7 +36,7 @@ io.on('connection', (socket) => {
socket.handshake.session!['sessionEntry'],
socket.handshake.session!.anotherSessionEntry
];
socket.handshake.session!.touch(() => {});
socket.handshake.session!.touch();
socket.handshake.session!.regenerate(() => {});
socket.handshake.session!.save(() => {});
socket.handshake.session!.reload(() => {});