Changes:
- changed version number - fixed duplicate endpoint
This commit is contained in:
parent
13421ad0e8
commit
0e1201603f
6 changed files with 8 additions and 20 deletions
|
|
@ -51,7 +51,8 @@
|
|||
"jwt_exp_delta_seconds": "2592000",
|
||||
"S3_HOST": "",
|
||||
"S3_KEY": "",
|
||||
"S3_SECRET": ""
|
||||
"S3_SECRET": "",
|
||||
"version_number": "1.0.0"
|
||||
},
|
||||
"lambda_timeout": 150,
|
||||
"lambda_memory_size": 400,
|
||||
|
|
|
|||
|
|
@ -670,14 +670,6 @@ def delete_alert(projectId, alertId, context):
|
|||
return alerts.delete(projectId, alertId)
|
||||
|
||||
|
||||
@app.route('/alerts/notifications', methods=['POST', 'PUT'], authorizer=None)
|
||||
def send_alerts_notifications():
|
||||
data = app.current_request.json_body
|
||||
if data.get("token", "") != "nF46JdQqAM5v9KI9lPMpcu8o9xiJGvNNWOGL7TJP":
|
||||
return {"errors": ["missing token"]}
|
||||
return {"data": alerts.process_notifications(data.get("notifications", []))}
|
||||
|
||||
|
||||
@app.route('/{projectId}/funnels', methods=['POST', 'PUT'])
|
||||
def add_funnel(projectId, context):
|
||||
data = app.current_request.json_body
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ from chalicelib.core import users, telemetry
|
|||
from chalicelib.utils import captcha
|
||||
import json
|
||||
from chalicelib.utils.TimeUTC import TimeUTC
|
||||
from chalicelib.utils.helper import environ
|
||||
|
||||
|
||||
def get_signed_ups():
|
||||
|
|
@ -74,7 +75,7 @@ def create_step1(data):
|
|||
"projectName": project_name,
|
||||
"data": json.dumps({"lastAnnouncementView": TimeUTC.now()}),
|
||||
"organizationName": company_name,
|
||||
"versionNumber": "0.0.0"
|
||||
"versionNumber": environ["version_number"]
|
||||
}
|
||||
if data.get("tenantId") is not None:
|
||||
update_user = """
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@
|
|||
"jwt_exp_delta_seconds": "2592000",
|
||||
"S3_HOST": "",
|
||||
"S3_KEY": "",
|
||||
"S3_SECRET": ""
|
||||
"S3_SECRET": "",
|
||||
"version_number": "1.0.0"
|
||||
},
|
||||
"lambda_timeout": 150,
|
||||
"lambda_memory_size": 400,
|
||||
|
|
|
|||
|
|
@ -670,14 +670,6 @@ def delete_alert(projectId, alertId, context):
|
|||
return alerts.delete(projectId, alertId)
|
||||
|
||||
|
||||
@app.route('/alerts/notifications', methods=['POST', 'PUT'], authorizer=None)
|
||||
def send_alerts_notifications():
|
||||
data = app.current_request.json_body
|
||||
if data.get("token", "") != "nF46JdQqAM5v9KI9lPMpcu8o9xiJGvNNWOGL7TJP":
|
||||
return {"errors": ["missing token"]}
|
||||
return {"data": alerts.process_notifications(data.get("notifications", []))}
|
||||
|
||||
|
||||
@app.route('/{projectId}/funnels', methods=['POST', 'PUT'])
|
||||
def add_funnel(projectId, context):
|
||||
data = app.current_request.json_body
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ from chalicelib.ee import users, telemetry
|
|||
from chalicelib.utils import captcha
|
||||
import json
|
||||
from chalicelib.utils.TimeUTC import TimeUTC
|
||||
from chalicelib.utils.helper import environ
|
||||
|
||||
|
||||
def get_signed_ups():
|
||||
|
|
@ -69,7 +70,7 @@ def create_step1(data):
|
|||
params = {"email": email, "password": password,
|
||||
"fullname": fullname, "companyName": company_name,
|
||||
"projectName": project_name,
|
||||
"versionNumber": "0.0.0",
|
||||
"versionNumber": environ["version_number"],
|
||||
"data": json.dumps({"lastAnnouncementView": TimeUTC.now()})}
|
||||
if tenant_id is not None:
|
||||
query = """\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue