Skip to content

Commit d94376c

Browse files
authored
fix(backend): error on node creation from root nodes (#445)
NodeType.ENTRY was not converted to its corresponding value
1 parent f74cfdf commit d94376c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/editor/models/node_models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Required pydantic models for API
33
"""
44

5-
from enum import Enum
5+
from enum import StrEnum
66

77
from .base_models import BaseModel
88
from .types.datetime import DateTime
99

1010

11-
class NodeType(str, Enum):
11+
class NodeType(StrEnum):
1212
TEXT = "TEXT"
1313
SYNONYMS = "SYNONYMS"
1414
STOPWORDS = "STOPWORDS"

0 commit comments

Comments
 (0)