update: use correct events for realtime.

This commit is contained in:
ItzNotABug
2024-09-10 15:25:37 +05:30
parent 90ad31627b
commit 1bc524030d
@@ -48,7 +48,7 @@
onMount(() => {
// TODO: @itznotabug, the events need to be fixed then we can use `archives.*`
return sdk.forConsole.client.subscribe('console', (response) => {
if (response.events.includes('migrations.*')) {
if (response.events.includes('archives.*') || response.events.includes('policies.*')) {
invalidate(Dependencies.BACKUPS);
}
});
@@ -109,7 +109,7 @@
event="empty_documentation"
href="https://appwrite.io/docs/products/databases/backups"
ariaLabel="create backup"
>Documentation
>Documentation
</Button>
<Button