Skip to content

Commit 1c946e0

Browse files
committed
Update notification group id (#915)
1 parent af463b0 commit 1c946e0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

services/api/src/owl/db/models/oss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ def _search_query_filter(
15931593

15941594
class NotificationGroup(_TableBase, table=True):
15951595
id: str = SqlField(
1596-
default_factory=lambda: uuid7_str("notif_"),
1596+
default_factory=uuid7_str,
15971597
primary_key=True,
15981598
description="Notification group ID.",
15991599
)

services/api/tests/routers/test_notifications.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def test_create_notification_group():
6868
meta=config["meta"],
6969
)
7070
assert isinstance(g1, NotificationGroupRead)
71-
assert g1.id.startswith("notif_")
7271
assert g1.scope == config["scope"]
7372
assert g1.event_type == config["event_type"]
7473
assert g1.meta == config["meta"]

0 commit comments

Comments
 (0)