Fix TypeScript compilation errors and update .gitignore

This commit is contained in:
Bivekich
2025-08-06 02:31:22 +03:00
parent 7320fcf4fb
commit 643a6b76b3
5 changed files with 13 additions and 10 deletions

View File

@ -7,7 +7,7 @@ import { GqlAuthGuard } from '../auth/guards/gql-auth.guard';
import { CurrentUser } from '../auth/decorators/current-user.decorator';
import { User } from '../users/entities/user.entity';
const pubSub = new PubSub();
const pubSub = new PubSub() as any;
@Resolver(() => Message)
@UseGuards(GqlAuthGuard)

View File

@ -58,7 +58,7 @@ export class UsersService {
async updateOnlineStatus(id: string, isOnline: boolean): Promise<void> {
await this.usersRepository.update(id, {
isOnline,
lastSeen: isOnline ? null : new Date(),
lastSeen: isOnline ? undefined : new Date(),
});
}
}