Skip to content

Commit d4e14da

Browse files
committed
chore: increase custom theme limit
1 parent edbb4d4 commit d4e14da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/__tests__/dal/user.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ describe("UserDal", () => {
17291729
it("should return error if user has reached maximum", async () => {
17301730
// given
17311731
const { uid } = await UserTestData.createUser({
1732-
customThemes: new Array(10).fill(0).map(() => ({
1732+
customThemes: new Array(20).fill(0).map(() => ({
17331733
_id: new ObjectId(),
17341734
name: "any",
17351735
colors: [] as any,

backend/src/dal/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ export async function addTheme(
685685
const _id = new ObjectId();
686686

687687
await updateUser(
688-
{ uid, "customThemes.9": { $exists: false } },
688+
{ uid, "customThemes.19": { $exists: false } },
689689
{
690690
$push: {
691691
customThemes: {

0 commit comments

Comments
 (0)