Make impersonation ending work, fix frontend events

This commit is contained in:
Eli Ribble 2026-04-02 21:31:31 +00:00
parent 522c5785a2
commit 4b87c74f41
No known key found for this signature in database
18 changed files with 255 additions and 106 deletions

View file

@ -1,6 +1,6 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import { SSEManager } from "@/SSEManager";
import { SSEManager, SSEMessage } from "@/SSEManager";
import { ReviewTask } from "@/types";
import { useSessionStore } from "@/store/session";
@ -11,8 +11,8 @@ export const useReviewTaskStore = defineStore("review-task", () => {
const error = ref<string | null>(null);
// Subscription
SSEManager.subscribe("*", (e) => {
if (e.resource.startsWith("review-task")) {
SSEManager.subscribe((msg: SSEMessage) => {
if (msg.resource.startsWith("sync:review-task")) {
fetchAll();
}
});