Skip to content

Commit

Permalink
change message informations from requests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKonar committed Dec 12, 2024
1 parent 8e14263 commit c68901d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/manual_run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ def create_api(miabis_blaze_service: MiabisBlazeService, blaze_service: BlazeSer
def miabis_sync():
logger.info("MIABIS on FHIR: Manually starting sync.")
threading.Thread(target=miabis_blaze_service.sync).start()
return jsonify({"message": "sync finished. see logs of fhir-module for more info"})
return jsonify({"message": "MIABIS sync started. see logs of fhir-module for more info"})

@app.route('/sync', methods=['POST'])
def sync_now():
logger.info("Manually starting sync.")
threading.Thread(target=blaze_service.sync).start()
return jsonify({"message": "sync finished"})
return jsonify({"message": "sync started. see logs of fhir-module for more info"})

@app.route('/miabis-delete', methods=['POST'])
def miabis_delete():
logger.info("MIABIS on FHIR: Manually deleting every resource")
threading.Thread(target=miabis_blaze_service.delete_everything).start()
return jsonify({"message": "delete finished"})
return jsonify({"message": "MIABIS delete started. see logs of fhir-module for more info"})


@app.route('/delete', methods=['POST'])
def delete():
logger.info("Manually deleting every resource")
threading.Thread(target=blaze_service.delete_everything).start()
return jsonify({"message": "delete finished"})
return jsonify({"message": "delete started. see logs of fhir-module for more info"})


return app

0 comments on commit c68901d

Please sign in to comment.