Skip to content

Commit

Permalink
Moved type declaration into trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
justinliangg committed Jan 2, 2023
1 parent 87c2eae commit f743bf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion firebase/functions/visitTrigger.ts
@@ -1,7 +1,12 @@
import { firestore } from './main'
import { getFirestore, DocumentData } from 'firebase-admin/firestore'
import { UserStat } from '../../src/types/types'
const db = getFirestore()
interface UserStat {
numVisits: number
numHours: number
commutedDist: number
walkedDist: number
}

/**
* Trigger for any changes to the visit subcollection
Expand Down
2 changes: 1 addition & 1 deletion firebase/package.json
Expand Up @@ -20,7 +20,7 @@
"engines": {
"node": "16"
},
"main": "lib/firebase/functions/index.js",
"main": "lib/index.js",
"dependencies": {
"@google-cloud/billing": "^3.1.3",
"@google-cloud/pubsub": "^3.2.1",
Expand Down

0 comments on commit f743bf7

Please sign in to comment.