improved a bunch of things
This commit is contained in:
@@ -44,7 +44,8 @@ export default defineEventHandler(async (event) => {
|
||||
server: {
|
||||
select: {
|
||||
id: true,
|
||||
name: true
|
||||
name: true,
|
||||
participants: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,14 +113,20 @@ export default defineEventHandler(async (event) => {
|
||||
invites: {
|
||||
select: {
|
||||
id: true,
|
||||
server: true,
|
||||
expires: true,
|
||||
expiryDate: true,
|
||||
maxUses: true
|
||||
maxUses: true,
|
||||
server: {
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
participants: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}) as IMessage
|
||||
}) as unknown as IMessage
|
||||
|
||||
|
||||
global.io.emit(`message-${channel.id}`, { message });
|
||||
|
||||
Reference in New Issue
Block a user