chore: increase custom theme limit

This commit is contained in:
Miodec 2024-11-04 10:46:34 +01:00
parent edbb4d4451
commit d4e14da02c
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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: {