From 34b7ec94f26c527ac58a5da212c0c31ac95135c4 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Fri, 6 May 2022 17:15:23 +0200 Subject: [PATCH] Init stake and commission to empty list on new monthly stats object --- backend/src/models/monthlyStat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/models/monthlyStat.js b/backend/src/models/monthlyStat.js index 1424fe9..879e409 100644 --- a/backend/src/models/monthlyStat.js +++ b/backend/src/models/monthlyStat.js @@ -201,12 +201,12 @@ const MonthlyStatSchema = new mongoose.Schema({ latestCommission: { type: [OrchCommissionSchema], required: false, - default: null + default: [] }, latestTotalStake: { type: [OrchStakeSchema], required: false, - default: null + default: [] }, testScores: { type: Object,