Use string interpolation
This commit is contained in:
parent
ffb345ccb5
commit
291beb45fc
40 changed files with 53 additions and 53 deletions
|
@ -16,7 +16,7 @@ export default function() {
|
|||
});
|
||||
|
||||
ev.on('requestNotesStatsLog', id => {
|
||||
ev.emit('notesStatsLog:' + id, log.toArray());
|
||||
ev.emit(`notesStatsLog:${id}`, log.toArray());
|
||||
});
|
||||
|
||||
process.on('exit', code => {
|
||||
|
|
|
@ -16,7 +16,7 @@ export default function() {
|
|||
const log = new Deque<any>();
|
||||
|
||||
ev.on('requestServerStatsLog', x => {
|
||||
ev.emit('serverStatsLog:' + x.id, log.toArray().slice(0, x.length || 50));
|
||||
ev.emit(`serverStatsLog:${x.id}`, log.toArray().slice(0, x.length || 50));
|
||||
});
|
||||
|
||||
async function tick() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue