Reduce view writing
This commit is contained in:
@@ -54,7 +54,6 @@ export class ViewsExtension implements Extension {
|
|||||||
// Set up an interval to update the last viewed at timestamp continuously
|
// Set up an interval to update the last viewed at timestamp continuously
|
||||||
// while the user is connected. This should only be done once per socket.
|
// while the user is connected. This should only be done once per socket.
|
||||||
const interval = setInterval(updateView, 30 * Second);
|
const interval = setInterval(updateView, 30 * Second);
|
||||||
updateView();
|
|
||||||
|
|
||||||
this.intervalsBySocket.set(socketId, interval);
|
this.intervalsBySocket.set(socketId, interval);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user