From 4688142fafea4a7f7d00f35bfe37d0f2b4144832 Mon Sep 17 00:00:00 2001 From: ISHIMWE Ami Paradis <141851169+amiparadis250@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:11:39 +0200 Subject: [PATCH] disabling default admin for user --- src/model/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/User.ts b/src/model/User.ts index 87a8649..84c14ba 100644 --- a/src/model/User.ts +++ b/src/model/User.ts @@ -20,7 +20,7 @@ const userSchema = new mongoose.Schema({ }, isAdmin: { type: Boolean, - default: true, + default: false, }, blogs: [ {