mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1824 from appwrite/fix-domains-realtime
Fix domains realtime
This commit is contained in:
1 file changed
+9
-2
@@ -15,8 +15,15 @@
|
||||
domain.set({ $id: '', domain: '' });
|
||||
|
||||
return realtime
|
||||
.forProject($page.params.region, $page.params.region)
|
||||
.subscribe<Models.ProxyRule>('console', (data) => domain.set(data.payload));
|
||||
.forProject($page.params.region, $page.params.project)
|
||||
.subscribe<Models.ProxyRule>('console', (message) => {
|
||||
if (
|
||||
message.channels.includes(`projects.${$page.params.project}`) &&
|
||||
message.events.includes('rules.*')
|
||||
) {
|
||||
domain.set(message.payload);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
async function onFinish() {
|
||||
|
||||
Reference in new issue
Block a user