Skip to content

Commit

Permalink
fix chatroom
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Aug 27, 2024
1 parent 590e48d commit 3ea9bfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/domain/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class ChatService {
users: users,
blur: 0,
connected: true,
continued: false,
connectedAt: getDateTimeOfNow(),
freeExpired: free ? false : null,
});
Expand Down
3 changes: 2 additions & 1 deletion src/domain/chat/models/room.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ChatUserDto } from 'src/domain/chat/dtos';
const options: SchemaOptions = {
id: false,
collection: 'room',
autoCreate: true,
};

const ChatUser = new MongooseSchema(
Expand Down Expand Up @@ -38,7 +39,7 @@ export class Room extends Document {
@Prop({
required: true,
type: Boolean,
default: true,
default: false,
})
@IsBoolean()
continued: boolean;
Expand Down

0 comments on commit 3ea9bfe

Please sign in to comment.