Skip to content

Commit

Permalink
feat(db/models): Add eventhistory collection
Browse files Browse the repository at this point in the history
Add event history collection for new api endpoint

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Oct 29, 2024
1 parent d1b28bd commit 3d6c00a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from beanie import init_beanie
from fastapi_pagination.ext.motor import paginate
from motor import motor_asyncio
from kernelci.api.models import Hierarchy, Node, parse_node_obj
from kernelci.api.models import Hierarchy, Node, parse_node_obj, EventHistory
from .models import User, UserGroup


Expand All @@ -26,6 +26,7 @@ class Database:
User: 'user',
Node: 'node',
UserGroup: 'usergroup',
EventHistory: 'eventhistory',
}

OPERATOR_MAP = {
Expand Down

0 comments on commit 3d6c00a

Please sign in to comment.