Skip to content

Commit bbed75d

Browse files
400 when we should 400
1 parent 00bd181 commit bbed75d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appstore/developer_portal_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import datetime
33
import secrets
44

5-
from algoliasearch import algoliasearch
5+
#from algoliasearch import algoliasearch
66
from flask import Blueprint, jsonify, abort, request, redirect
77
from flask_cors import CORS
88

@@ -684,7 +684,7 @@ def update_app_forum_url(app_id):
684684
return jsonify(error="Invalid URL for new discourse topic", e="url.invalid"), 400
685685

686686
if not user_owns_discourse_topic(req["new_url"]):
687-
return jsonify(error="You are not the creator of the provided discourse topic", e="url.permissions.missing")
687+
return jsonify(error="You are not the creator of the provided discourse topic", e="url.permissions.missing"), 400
688688

689689
app.discourse_topic_id = topic_url_to_id(req["new_url"])
690690
db.session.commit()

0 commit comments

Comments
 (0)