removed consoles

parent 91606c0a
...@@ -52,7 +52,6 @@ export const TrackController = { ...@@ -52,7 +52,6 @@ export const TrackController = {
publishTrack: async (req: Request, res: Response) => { publishTrack: async (req: Request, res: Response) => {
try { try {
const id = req.params.id; const id = req.params.id;
console.log('sdfd');
await TrackModel.findOneAndUpdate({_id: id}, {published: true}); await TrackModel.findOneAndUpdate({_id: id}, {published: true});
res.send('Published'); res.send('Published');
} catch (err) { } catch (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment