From b56b412bacd16c132217a39731ef8d77b74d8b48 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Thu, 20 Nov 2025 13:24:36 +0700 Subject: [PATCH] fix code --- src/stores/socket.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/socket.ts b/src/stores/socket.ts index 1b75d50f3..0d5ea4c64 100644 --- a/src/stores/socket.ts +++ b/src/stores/socket.ts @@ -1,8 +1,8 @@ +import config from "@/app.config"; +import { getToken } from "@/plugins/auth"; import { defineStore } from "pinia"; import { Notify } from "quasar"; import { io, Socket } from "socket.io-client"; - -import config from "@/app.config"; interface sockeBackup { message: string; success?: boolean; @@ -21,7 +21,7 @@ export const useSocketStore = defineStore("socket", () => { notifyStatus(body.message, body.success); }); - socket.on("socket-notification", (payload) => { + socket.on("send-notification", (payload) => { let body: sockeBackup = JSON.parse(payload); notifyStatus(body.message, body.success); });