Skip to content

Commit 4e38183

Browse files
committed
fix: session-event.handler 메서드명 객체에 맞게 수정
1 parent 025adc9 commit 4e38183

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DBManager/src/session/session-event.handler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)