Added serverless scheduled functions with Firebase

This commit is contained in:
2020-08-15 00:40:47 +02:00
parent cfd964c3ff
commit 9e3f02bfe2
11 changed files with 2727 additions and 83 deletions
+9 -1
View File
@@ -29,6 +29,8 @@ import Options from "@/components/ui/Options.vue";
import Loading from "@/components/states/Loading.vue";
import Error from "@/components/states/Error.vue";
import db from "@/scripts/firebase/firebaseInit";
enum ConnState {
Loading = 0,
Error = 1,
@@ -65,7 +67,13 @@ export default class StationsView extends Vue {
);
}
mounted() {
async mounted() {
const { docs } = await db.collection("history").get();
docs.forEach((doc) => {
console.log(doc.data());
});
// this.$store.watch(
// (state, getters) => getters.getConnectionState,
// (state: ConnState) => {