Notifications (#1)

This commit is contained in:
2025-05-09 12:46:53 +02:00
committed by GitHub
parent 9423b4804a
commit 5d1c0bc2ba
12 changed files with 73 additions and 122 deletions

View File

@@ -1,8 +1,8 @@
import mongoose, { ObjectId, Schema } from "mongoose"
import mongoose, { Types, Schema } from "mongoose"
// TODO: Unify `fname` and `surename` into single field
interface IUser {
export interface IUser {
uname: string;
pass: string;
room?: string;
@@ -10,7 +10,7 @@ interface IUser {
locked?: boolean;
fname?: string;
surname?: string;
groups: ObjectId[];
groups: Types.ObjectId[];
}
const userSchema = new Schema<IUser>({