refactor: change event name

This commit is contained in:
Methapon2001 2023-12-10 10:07:49 +07:00
parent de2dca7e4d
commit 7c9579bb54
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; if (!result) return false;
const io = getInstance(); const io = getInstance();
io?.emit("FileUpdate", metadata); io?.emit("FileUpload", metadata);
return true; return true;
} }
@ -170,7 +170,7 @@ async function handleFoundRecord(
if (!result) return false; if (!result) return false;
const io = getInstance(); const io = getInstance();
io?.emit("FileUpdate", metadata); io?.emit("FileUpload", metadata);
return true; return true;
} }