From 338eb5f9903997e6292ec0452d195b58d94f95af Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:27:22 +0400 Subject: [PATCH] fix guild action array size --- __tests__/unit/models/guild.model.test.ts | 2 +- package.json | 2 +- src/models/schemas/Guild.schema.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/unit/models/guild.model.test.ts b/__tests__/unit/models/guild.model.test.ts index d50403b..d6856d1 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], + action: [1, 1, 1, 4, 3, 5, 5, 4, 3, 3, 2, 1, 2], }; }); diff --git a/package.json b/package.json index 4152c59..8a7d26c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@togethercrew.dev/db", - "version": "2.4.2", + "version": "2.4.3", "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 4daa59a..3baf3a4 100644 --- a/src/models/schemas/Guild.schema.ts +++ b/src/models/schemas/Guild.schema.ts @@ -59,7 +59,7 @@ const guildSchema = new Schema({ default: [1, 1, 1, 4, 3, 5, 5, 4, 3, 3, 2], validate: { validator: function (arr: Array) { - return arr.length === 11; + return arr.length === 13; }, message: 'Action must be an array with exactly 11 numbers', },