fix(server): suppress mongoose reserved-key warning on Check.errors

Mongoose 8 logs a reserved-key warning at boot because the Check schema
defines an `errors` field, which collides with Mongoose's internal
document `errors` accessor. The field is intentional and safe to keep,
so opt out of the warning via `suppressReservedKeysWarning: true`.

Closes #1539
This commit is contained in:
gorkem-bwl committed 2026-04-23 23:32:33 -04:00
1 parent 6ed0818bad
commit d44f7497a5
1 file changed
+1
+1
View File
@@ -271,6 +271,7 @@ const CheckSchema = new Schema<CheckDocument>(
{
timestamps: true,
strict: false,
suppressReservedKeysWarning: true,
timeseries: {
timeField: "createdAt",
metaField: "metadata",