Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions store/robocon.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { firebaseAction } from 'vuexfire'
import { db } from '@/plugins/firebase'
import { firestoreAction } from 'vuexfire'
import { DB } from '@/plugins/firebase'

const roboconRef = db.ref('robocon/current')
const roboconRef = DB.collection('robocon').doc('current')

export const state = () => ({
robocon: {}
})

export const actions = {
setRoboconRef: firebaseAction(({ bindFirebaseRef }) => {
return bindFirebaseRef('robocon', roboconRef)
setRoboconRef: firestoreAction(({ bindFirestoreRef }) => {
return bindFirestoreRef('robocon', roboconRef)
})
}