Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
chore: set favorites to empty list by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Nov 24, 2024
1 parent 66a7cbe commit 7b05ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/storages/mongo/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from enum import StrEnum

from beanie import PydanticObjectId
from pymongo import IndexModel

from beanie import PydanticObjectId
from src.pydantic_base import BaseSchema
from src.storages.mongo.__base__ import CustomDocument

Expand All @@ -17,7 +17,7 @@ class UserRole(StrEnum):
class UserSchema(BaseSchema):
login: str
password_hash: str
favorites: list[PydanticObjectId]
favorites: list[PydanticObjectId] = []
role: UserRole = UserRole.DEFAULT


Expand Down

0 comments on commit 7b05ba2

Please sign in to comment.