Skip to content

Commit

Permalink
fix: module error
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed Jan 20, 2024
1 parent 109ece8 commit b43d2bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/blurting/blurting.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export class BlurtingConsumer {
queueStallHandler(job: Job) {
console.log('job stalled');
console.log(job.data);

}

@OnQueueFailed()
Expand Down
13 changes: 13 additions & 0 deletions src/user/user.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MongooseModule } from '@nestjs/mongoose';
import { CacheModule } from '@nestjs/cache-manager';
import { redisStore } from 'cache-manager-redis-store';
import { UserEntity, UserInfoEntity, UserImageEntity } from 'src/entities';
import {
SocketUser,
Expand All @@ -20,6 +22,17 @@ import { FcmModule } from 'src/firebase/fcm.module';
{ name: SocketUser.name, schema: SocketUserSchema },
{ name: Room.name, schema: RoomSchema },
]),
CacheModule.register({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
store: async () =>
await redisStore({
socket: {
host: 'localhost',
port: 6379,
},
}),
}),
],
controllers: [UserController],
providers: [UserService],
Expand Down

0 comments on commit b43d2bf

Please sign in to comment.