From e36da55bd7108b3f442c014358de3053e91c3166 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Mon, 10 Jul 2023 21:14:51 +0400 Subject: [PATCH] [FEATURE]: update action feild for guilds --- __tests__/unit/models/guild.model.test.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/models/schemas/Guild.schema.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/unit/models/guild.model.test.ts b/__tests__/unit/models/guild.model.test.ts index d6856d1..536a70a 100644 --- a/__tests__/unit/models/guild.model.test.ts +++ b/__tests__/unit/models/guild.model.test.ts @@ -22,7 +22,7 @@ describe('Guild model', () => { isInProgress: false, icon: null, window: [7, 1], - action: [1, 1, 1, 4, 3, 5, 5, 4, 3, 3, 2, 1, 2], + action: [1, 1, 1, 4, 3, 5, 5, 4, 3, 2, 2, 2, 1], }; }); diff --git a/package-lock.json b/package-lock.json index 1d0cfe5..85d860d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@togethercrew.dev/db", - "version": "2.3.2", + "version": "2.4.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@togethercrew.dev/db", - "version": "2.3.2", + "version": "2.4.6", "license": "ISC", "dependencies": { "discord.js": "^14.7.1", diff --git a/package.json b/package.json index dd1ba32..e5ab95d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@togethercrew.dev/db", - "version": "2.4.6", + "version": "2.4.7", "description": "All interactions with DB", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/models/schemas/Guild.schema.ts b/src/models/schemas/Guild.schema.ts index 4f04d99..7fd4fa6 100644 --- a/src/models/schemas/Guild.schema.ts +++ b/src/models/schemas/Guild.schema.ts @@ -56,7 +56,7 @@ const guildSchema = new Schema({ }, action: { type: Array, - default: [1, 1, 1, 4, 3, 5, 5, 4, 3, 3, 2, 2, 1], + default: [1, 1, 1, 4, 3, 5, 5, 4, 3, 2, 2, 2, 1], validate: { validator: function (arr: Array) { return arr.length === 13;