Skip to content

Commit

Permalink
Merge pull request #89 from TogetherCrew/88-update-database-action-field
Browse files Browse the repository at this point in the history
[FEATURE]: update action feild for guilds
  • Loading branch information
cyri113 authored Jul 10, 2023
2 parents 91d3f92 + e36da55 commit 6b45c8e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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, 1, 2],
action: [1, 1, 1, 4, 3, 5, 5, 4, 3, 2, 2, 2, 1],
};
});

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.6",
"version": "2.4.7",
"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 @@ -56,7 +56,7 @@ const guildSchema = new Schema<IGuild, GuildModel>({
},
action: {
type: Array<number>,
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<number>) {
return arr.length === 13;
Expand Down

0 comments on commit 6b45c8e

Please sign in to comment.