Skip to content

Commit

Permalink
fix: fixed del
Browse files Browse the repository at this point in the history
  • Loading branch information
dart-mih committed Nov 26, 2023
1 parent c1e6f5d commit 48923a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/routes/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get(self, y, x, r):
@api.route('/image/<string:img_id>')
class Image(Resource):
def delete(self, img_id):
map_info = db.maps.files.find_one(ObjectId(v))
map_info = db.maps.files.find_one(ObjectId(img_id))

if map_info:
maps_fs.delete(ObjectId(img_id))
Expand Down

0 comments on commit 48923a7

Please sign in to comment.