Skip to content

Commit

Permalink
fix(backend): error on node creation from root nodes (#445)
Browse files Browse the repository at this point in the history
NodeType.ENTRY was not converted to its corresponding value
  • Loading branch information
perierc committed Mar 14, 2024
1 parent f74cfdf commit d94376c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/editor/models/node_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Required pydantic models for API
"""

from enum import Enum
from enum import StrEnum

from .base_models import BaseModel
from .types.datetime import DateTime


class NodeType(str, Enum):
class NodeType(StrEnum):
TEXT = "TEXT"
SYNONYMS = "SYNONYMS"
STOPWORDS = "STOPWORDS"
Expand Down

0 comments on commit d94376c

Please sign in to comment.