refactor: change event name
This commit is contained in:
parent
de2dca7e4d
commit
7c9579bb54
1 changed files with 2 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ async function handleNotFoundRecord(
|
|||
if (!result) return false;
|
||||
|
||||
const io = getInstance();
|
||||
io?.emit("FileUpdate", metadata);
|
||||
io?.emit("FileUpload", metadata);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -170,7 +170,7 @@ async function handleFoundRecord(
|
|||
if (!result) return false;
|
||||
|
||||
const io = getInstance();
|
||||
io?.emit("FileUpdate", metadata);
|
||||
io?.emit("FileUpload", metadata);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue