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) => {
const board = doc.data();
if (state.user.uid !== board.owner) {
return reject();
}
// if (state.user.uid !== board.owner) {
// return reject();
// }
commit('SET_ACTIVE_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 }) {
return new Promise((resolve, reject) => {
const db = firestore();