Remove LOAD_PUBIC_BOARD action

This commit is contained in:
Gamebrary 2022-08-19 16:51:57 -07:00
parent 1f22bb380f
commit baf0a5d332

View file

@ -136,9 +136,9 @@ export default {
.then((doc) => { .then((doc) => {
const board = doc.data(); const board = doc.data();
if (state.user.uid !== board.owner) { // if (state.user.uid !== board.owner) {
return reject(); // return reject();
} // }
commit('SET_ACTIVE_BOARD', { commit('SET_ACTIVE_BOARD', {
...board, ...board,
@ -150,27 +150,6 @@ export default {
}); });
}, },
LOAD_PUBIC_BOARD({ commit }, id) {
return new Promise((resolve, reject) => {
const db = firestore();
db.collection('boards')
.doc(id)
.get()
.then((doc) => {
const board = doc.data();
commit('SET_ACTIVE_BOARD', {
...board,
id: doc.id,
});
return resolve();
})
.catch(reject);
});
},
LOAD_PUBLIC_BOARDS({ commit }) { LOAD_PUBLIC_BOARDS({ commit }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const db = firestore(); const db = firestore();