Changed label update to chat instead of contacts

This commit is contained in:
Judson Cairo
2024-02-08 15:38:27 -03:00
parent a2622cb38e
commit 3df4e8d2ba
4 changed files with 83 additions and 21 deletions

View File

@@ -8,7 +8,6 @@ export class ContactRaw {
id?: string;
profilePictureUrl?: string;
owner: string;
labels?: string[];
}
type ContactRawBoolean<T> = {
@@ -22,7 +21,6 @@ const contactSchema = new Schema<ContactRaw>({
id: { type: String, required: true, minlength: 1 },
profilePictureUrl: { type: String, minlength: 1 },
owner: { type: String, required: true, minlength: 1 },
labels: { type: [String], default: [] },
});
export const ContactModel = dbserver?.model(ContactRaw.name, contactSchema, 'contacts');