fix(types): remove unused role property from MessageWithMember
Some checks failed
Deploy Waveform to VPS / deploy (push) Failing after 9m26s
Some checks failed
Deploy Waveform to VPS / deploy (push) Failing after 9m26s
This commit is contained in:
parent
d286e6cad7
commit
e19b3f1d08
2 changed files with 1 additions and 3 deletions
|
|
@ -75,7 +75,6 @@ export default async function DirectMessagePage({
|
|||
memberId: msg.senderId,
|
||||
member: {
|
||||
id: msg.sender.id,
|
||||
role: "MEMBER",
|
||||
user: msg.sender,
|
||||
},
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -19,10 +19,9 @@ import { useUser } from "@/lib/context/UserContext";
|
|||
export type MessageWithMember = Omit<Message, "channelId"> & {
|
||||
channelId?: string;
|
||||
conversationId?: string;
|
||||
type?: "chat" | "dm";
|
||||
type: "chat" | "dm";
|
||||
member: {
|
||||
id: string;
|
||||
role: string;
|
||||
user: User;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue