Skip to content

Commit

Permalink
change token payment
Browse files Browse the repository at this point in the history
  • Loading branch information
skript023 committed Apr 21, 2024
1 parent 0dbf8bd commit c312598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ jobs:

- name: Build and start Docker containers
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} export PGPASSWORD="${{ secrets.DB_PASSWORD }}"
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "cd /home/${{ secrets.SERVER_USER }}/gbt-backend/Linux/"
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "
export PGPASSWORD='${{ secrets.DB_PASSWORD }}'
if sudo docker ps --format '{{.Names}}' | grep -q "gaboot-shop-database"; then
cd /home/${{ secrets.SERVER_USER }}/gbt-backend/Linux/ && sudo docker compose up -d --build gaboot-api
cd /home/${{ secrets.SERVER_USER }}/gbt-backend/Linux/ && sudo docker compose restart
Expand Down
2 changes: 1 addition & 1 deletion src/module/payment/services/payment_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace gaboot
cpr::Header header = {
{ "Accept", "application/json" },
{ "Content-Type", "application/json" },
{ "Authorization", "Basic U0ItTWlkLXNlcnZlci1GTzllNFFRTlZjVVJmUEYtb2UxMWU5ZFg=" }
{ "Authorization", token }
};

cpr::Body body = m_json.dump();
Expand Down

0 comments on commit c312598

Please sign in to comment.