Skip to content

Commit

Permalink
[backend] Fix WsPublicUserEntity constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
usatie committed Feb 21, 2024
1 parent 8efb0c4 commit 53624f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/chat/entities/message.entity.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { User } from '@prisma/client';

export class WsPublicUserEntity {
constructor(user: WsPublicUserEntity) {
constructor(user: User) {
this.id = user.id;
this.name = user.name;
this.avatarURL = user.avatarURL;
Expand Down

0 comments on commit 53624f0

Please sign in to comment.