mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
fix(resources/notes): fetch notes after adding
This commit is contained in:
1 parent
f53117971e
commit
fd6afa927c
1 file changed
+4
@@ -20,6 +20,10 @@ on(`__cfx_nui:${NotesEvents.UPDATE_NOTE}`, (note: Note) => {
|
||||
emitNet(NotesEvents.UPDATE_NOTE, note);
|
||||
});
|
||||
|
||||
onNet(NotesEvents.SEND_NOTE_SUCCESS, () => {
|
||||
emitNet(NotesEvents.FETCH_ALL_NOTES);
|
||||
});
|
||||
|
||||
onNet(NotesEvents.UPDATE_NOTE_SUCCESS, () => {
|
||||
emitNet(NotesEvents.FETCH_ALL_NOTES);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user