Skip to content

Commit

Permalink
Merge pull request #83 from RnDAO/fix/action
Browse files Browse the repository at this point in the history
fix guild action array size
  • Loading branch information
cyri113 authored Jun 28, 2023
2 parents 3299c1e + 338eb5f commit 3778f0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __tests__/unit/models/guild.model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
};
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/models/schemas/Guild.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const guildSchema = new Schema<IGuild, GuildModel>({
default: [1, 1, 1, 4, 3, 5, 5, 4, 3, 3, 2],
validate: {
validator: function (arr: Array<number>) {
return arr.length === 11;
return arr.length === 13;
},
message: 'Action must be an array with exactly 11 numbers',
},
Expand Down

0 comments on commit 3778f0e

Please sign in to comment.