File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ export class SessionEventHandler implements OnModuleInit {
1010 ) { }
1111
1212 onModuleInit ( ) {
13- this . createDB ( ) ;
14- this . removeDB ( ) ;
13+ this . appendEventHandler ( ) ;
14+ this . expiredEventHandler ( ) ;
1515 }
1616
17- private createDB ( ) {
17+ private appendEventHandler ( ) {
1818 const channel = '__keyspace@0__:APPEND' ;
1919 this . redisService . subscribeSession ( channel , async ( sessionId ) => {
2020 const pod = await this . redisService . hgetSession ( sessionId , 'pod' ) ;
2121 this . userDBService . initUserDatabase ( pod , sessionId ) ;
2222 } ) ;
2323 }
2424
25- private removeDB ( ) {
25+ private expiredEventHandler ( ) {
2626 const channel = '__keyspace@0__:EXPIRE' ;
2727 this . redisService . subscribeSession ( channel , async ( sessionId ) => {
2828 const pod = await this . redisService . hgetSession ( sessionId , 'pod' ) ;
You can’t perform that action at this time.
0 commit comments