Dodano opcję lokalnego zapamiętywania filtrów

This commit is contained in:
2020-08-22 16:43:33 +02:00
parent c6e3e3f779
commit 8ab8461276
8 changed files with 1008 additions and 469 deletions
+1 -8
View File
@@ -7,7 +7,7 @@ const db = admin.firestore();
import axios from "axios";
exports.scheduledUpdate = functions.pubsub
.schedule("*/20 * * * *")
.schedule("0 * * * *")
.onRun(async (context) => {
let stationData: {
stationName: string;
@@ -37,13 +37,6 @@ exports.scheduledUpdate = functions.pubsub
occupiedFrom: Date.now(),
currentDispatcherName: station.dispatcherName,
});
// docRef.collection("dispatcherHistory").add({
// dispatcherName: station.dispatcherName,
// occupiedFrom: Date.now(),
// occupiedTo: 0,
// });
return;
}
});