From b7873a8552ff486b692fbbb2ca458d827e1b0537 Mon Sep 17 00:00:00 2001 From: Lukas Kybartas Date: Fri, 27 Mar 2020 23:02:06 +0200 Subject: [PATCH] org schema: status default value should be a string --- exercises/hooks/org.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/hooks/org.js b/exercises/hooks/org.js index e3c50f8..dbbc4a9 100644 --- a/exercises/hooks/org.js +++ b/exercises/hooks/org.js @@ -12,7 +12,7 @@ const orgSchema = new mongoose.Schema({ status: { type: String, required: true, - default: ['active'], + default: 'active', enum: ['active', 'trialing', 'overdue', 'canceled'] }, last4: {