mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 13:15:05 +00:00
reformat
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user