Added resource field in websocket message

Used to differentiate resources for root-level subscriptions
This commit is contained in:
Donkie
2023-10-15 20:39:53 +02:00
parent 3e2bbed17e
commit 5f7a063125
4 changed files with 8 additions and 1 deletions

View File

@@ -312,6 +312,7 @@ async def spool_changed(spool: models.Spool, typ: EventType) -> None:
("spool", str(spool.id)),
SpoolEvent(
type=typ,
resource="spool",
date=datetime.utcnow(),
payload=Spool.from_db(spool),
),