We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edbb4d4 commit d4e14daCopy full SHA for d4e14da
backend/__tests__/dal/user.spec.ts
@@ -1729,7 +1729,7 @@ describe("UserDal", () => {
1729
it("should return error if user has reached maximum", async () => {
1730
// given
1731
const { uid } = await UserTestData.createUser({
1732
- customThemes: new Array(10).fill(0).map(() => ({
+ customThemes: new Array(20).fill(0).map(() => ({
1733
_id: new ObjectId(),
1734
name: "any",
1735
colors: [] as any,
backend/src/dal/user.ts
@@ -685,7 +685,7 @@ export async function addTheme(
685
const _id = new ObjectId();
686
687
await updateUser(
688
- { uid, "customThemes.9": { $exists: false } },
+ { uid, "customThemes.19": { $exists: false } },
689
{
690
$push: {
691
customThemes: {
0 commit comments