diff options
author | Miodec <[email protected]> | 2024-11-04 10:46:34 +0100 |
---|---|---|
committer | Miodec <[email protected]> | 2024-11-04 10:49:25 +0100 |
commit | d4e14da02cca4ed2feca73b943126ea26c26cac6 (patch) | |
tree | 0f20885e2bbe4901257b59b35a6817426662ba5c | |
parent | edbb4d44516b4055fbc64b521f303fbff0bee58c (diff) | |
download | monkeytype-d4e14da02cca4ed2feca73b943126ea26c26cac6.tar.gz monkeytype-d4e14da02cca4ed2feca73b943126ea26c26cac6.zip |
chore: increase custom theme limit
-rw-r--r-- | backend/__tests__/dal/user.spec.ts | 2 | ||||
-rw-r--r-- | backend/src/dal/user.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/__tests__/dal/user.spec.ts b/backend/__tests__/dal/user.spec.ts index 6df733608..47602fea2 100644 --- a/backend/__tests__/dal/user.spec.ts +++ b/backend/__tests__/dal/user.spec.ts @@ -1729,7 +1729,7 @@ describe("UserDal", () => { it("should return error if user has reached maximum", async () => { // given const { uid } = await UserTestData.createUser({ - customThemes: new Array(10).fill(0).map(() => ({ + customThemes: new Array(20).fill(0).map(() => ({ _id: new ObjectId(), name: "any", colors: [] as any, diff --git a/backend/src/dal/user.ts b/backend/src/dal/user.ts index 07f016355..9d1ce6f68 100644 --- a/backend/src/dal/user.ts +++ b/backend/src/dal/user.ts @@ -685,7 +685,7 @@ export async function addTheme( const _id = new ObjectId(); await updateUser( - { uid, "customThemes.9": { $exists: false } }, + { uid, "customThemes.19": { $exists: false } }, { $push: { customThemes: { |