File tree 1 file changed +2
-3
lines changed
digibank/routes/integrations
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -291,9 +291,8 @@ def tbank_recipe_salary_transfer_trigger():
291
291
user_info = get_user_info (token )
292
292
293
293
# then get POSTed form data
294
- data = request .get_json ()
295
294
email = user_info ['email' ]
296
- taskName = data [ 'task_name' ]
295
+ taskName = "tbank.salary.transfer"
297
296
298
297
table = dynamodb .Table ("scheduled_tasks" )
299
298
response = table .delete_item (
@@ -304,7 +303,7 @@ def tbank_recipe_salary_transfer_trigger():
304
303
)
305
304
logger .info (
306
305
"{} requested to manually trigger task {}" .format (email , taskName ))
307
- return jsonify ({"status" : 200 , "message" : "Successfully triggered the task. Please check the status in Run History. " }), 200
306
+ return jsonify ({"status" : 200 , "message" : "OK " }), 200
308
307
309
308
310
309
@app .route ("/integrations/tbank/recipe_salary_transfer" , methods = ['POST' ])
You can’t perform that action at this time.
0 commit comments