mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 18:28:47 +00:00
reformat
This commit is contained in:
parent
d9f6fb5d8e
commit
ec041732d9
@ -34,7 +34,6 @@ exports.getAllTopics = (req, res) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.deleteTopic = (req, res) => {
|
exports.deleteTopic = (req, res) => {
|
||||||
// TODO: handle add and delete by topic id
|
|
||||||
const topic = db.doc(`/topics/${req.params.topicId}`);
|
const topic = db.doc(`/topics/${req.params.topicId}`);
|
||||||
topic.get().then((doc) => {
|
topic.get().then((doc) => {
|
||||||
if (!doc.exists) {
|
if (!doc.exists) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user