aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--backend/__tests__/dal/user.spec.ts2
-rw-r--r--backend/src/dal/user.ts2
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: {