mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
chore: increase custom theme limit
This commit is contained in:
parent
edbb4d4451
commit
d4e14da02c
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue