Fix long-polling request for project notifications.

This commit is contained in:
grossmj committed 2019-02-23 21:08:52 +07:00
1 parent 10702f87bc
commit 7fe8f7e716
10 files changed
+82 -64

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ class Snapshot:
except (OSError, PermissionError) as e:
raise aiohttp.web.HTTPConflict(text=str(e))
await project.open()
self._project.controller.notification.project_emit("snapshot.restored", self.__json__())
self._project.emit_notification("snapshot.restored", self.__json__())
return self._project
def __json__(self):