Office back fix
This commit is contained in:
@@ -149,7 +149,7 @@ def upload_file():
|
||||
|
||||
if file and allowed_file(file.filename):
|
||||
logger.info(f'POST CALLED 5 {file.filename}')
|
||||
response = FileUploadService.process_file_upload("WEB_MEDIA", file ,member_uid )
|
||||
response = FileUploadService.process_file_upload("WEB_MEDIA", file, member_uid)
|
||||
|
||||
# save_path=UPLOAD_FOLDER + "/" + "F000000000001"
|
||||
# filename = secure_filename(file.filename)
|
||||
@@ -234,6 +234,7 @@ def merms_account_payments():
|
||||
response = AccountService.process_payments_data(data)
|
||||
return response
|
||||
|
||||
|
||||
@api.route("/panel/account/media-files", methods=["POST"])
|
||||
def get_websitefiles():
|
||||
data = request.get_json()
|
||||
@@ -241,6 +242,7 @@ def get_websitefiles():
|
||||
response = FileUploadService.member_webfiles(data)
|
||||
return response
|
||||
|
||||
|
||||
@api.route("/panel/account/products/url", methods=["POST"])
|
||||
def myproduct_url():
|
||||
data = request.get_json()
|
||||
@@ -611,6 +613,20 @@ def get_subscription_billings_office():
|
||||
return jsonify(result)
|
||||
|
||||
|
||||
@api.route('/office/file-uploads', methods=['GET'])
|
||||
# @token_required
|
||||
def get_file_uploads_office():
|
||||
# Call the dashboard service
|
||||
filters = {
|
||||
'product_id': request.args.get('product_id'),
|
||||
'member_id': request.args.get('member_id'),
|
||||
'page': request.args.get('page', 1),
|
||||
'limit': request.args.get('limit', 20)
|
||||
}
|
||||
result = OfficeDashboardService.get_file_upload_data(filters)
|
||||
return jsonify(result)
|
||||
|
||||
|
||||
@api.route('/office/transaction', methods=['GET'])
|
||||
def get_subscription_transaction_office():
|
||||
# Call the dashboard service
|
||||
|
||||
Reference in New Issue
Block a user