From baf0a5d33246f0664abe4b6455da13d26ccf7d01 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Fri, 19 Aug 2022 16:51:57 -0700 Subject: [PATCH] Remove LOAD_PUBIC_BOARD action --- src/store/actions.js | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/store/actions.js b/src/store/actions.js index 4041be33..0f93166e 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -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();