fix: Adjusts in settings with options always_online, read_messages and read_status

This commit is contained in:
Davidson Gomes
2023-07-25 09:57:28 -03:00
parent 183efd427a
commit a12231a0aa
7 changed files with 65 additions and 7 deletions

View File

@@ -6,6 +6,9 @@ export class SettingsRaw {
reject_call?: boolean;
msg_call?: string;
groups_ignore?: boolean;
always_online?: boolean;
read_messages?: boolean;
read_status?: boolean;
}
const settingsSchema = new Schema<SettingsRaw>({
@@ -13,6 +16,9 @@ const settingsSchema = new Schema<SettingsRaw>({
reject_call: { type: Boolean, required: true },
msg_call: { type: String, required: true },
groups_ignore: { type: Boolean, required: true },
always_online: { type: Boolean, required: true },
read_messages: { type: Boolean, required: true },
read_status: { type: Boolean, required: true },
});
export const SettingsModel = dbserver?.model(