mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 11:32:29 +00:00
✨ add user_id field to Member
This commit is contained in:
1 parent
c410fbcc0d
commit
562a53d6bb
17 files changed
+68
-80
No files matched your search
@@ -56,7 +56,7 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
}
|
||||
|
||||
const members = await Member.find({
|
||||
where: { id: this.user_id },
|
||||
where: { user_id: this.user_id },
|
||||
relations: ["guild", "guild.channels", "guild.emojis", "guild.roles", "guild.stickers", "user", "roles"],
|
||||
});
|
||||
const merged_members = members.map((x: any) => {
|
||||
|
||||
@@ -8,6 +8,7 @@ import { check } from "./instanceOf";
|
||||
|
||||
// TODO: check permission and only show roles/members that have access to this channel
|
||||
// TODO: config: if want to list all members (even those who are offline) sorted by role, or just those who are online
|
||||
// TODO: rewrite typeorm
|
||||
|
||||
export async function onLazyRequest(this: WebSocket, { d }: Payload) {
|
||||
// TODO: check data
|
||||
|
||||
Reference in new issue
Block a user