hotfix: wrong function usage

This commit is contained in:
Methapon2001 2023-12-08 13:34:37 +07:00
parent cb8071db6f
commit eda5d7063d
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -144,7 +144,7 @@ async function handleNotFoundRecord(
if (!result) return false;
const io = getInstance();
io?.send("FileUpdate", metadata);
io?.emit("FileUpdate", metadata);
return true;
}
@ -170,7 +170,7 @@ async function handleFoundRecord(
if (!result) return false;
const io = getInstance();
io?.send("FileUpdate", metadata);
io?.emit("FileUpdate", metadata);
return true;
}