@kne/fastify-task 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -173,9 +173,8 @@ module.exports = fp(
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
async function (request, reply) {
|
|
176
|
-
const intervalSeconds = request.query.interval;
|
|
176
|
+
const intervalSeconds = request.query.interval ?? 5;
|
|
177
177
|
const { timezone, type, runnerType } = request.query;
|
|
178
|
-
reply.sse.keepAlive();
|
|
179
178
|
|
|
180
179
|
async function* eventStream() {
|
|
181
180
|
while (reply.sse.isConnected) {
|