Merge pull request 'hotfix/websockets' (#104) from hotfix/websockets into master
Reviewed-on: https://gitea.fernandovideira.com/SyntaxSquad/DADProject/pulls/104 Reviewed-by: Edd <[email protected]> Reviewed-by: Afonso Clerigo Mendes de Sousa <[email protected]> Reviewed-by: KZix <[email protected]>
This commit was merged in pull request #104.
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ dist
|
||||
frontend/.env
|
||||
frontend/.env.local
|
||||
frontend/.env.*.local
|
||||
|
||||
frontend/.env.production
|
||||
websockets/.env.production
|
||||
# Misc frontend files that should be ignored
|
||||
/frontend/public/hot
|
||||
/frontend/public/storage
|
||||
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
priorityClassName: high-priority
|
||||
containers:
|
||||
- name: api
|
||||
image: registry-172.22.21.115.sslip.io/dad-group-46/api:v2.0.2
|
||||
image: registry-172.22.21.115.sslip.io/dad-group-46/api:v2.0.9
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
priorityClassName: low-priority
|
||||
containers:
|
||||
- name: web
|
||||
image: registry-172.22.21.115.sslip.io/dad-group-46/web:v2.0.4
|
||||
image: registry-172.22.21.115.sslip.io/dad-group-46/web:v2.0.9
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
priorityClassName: low-priority
|
||||
containers:
|
||||
- name: web
|
||||
image: registry-172.22.21.115.sslip.io/dad-group-46/ws:v2.0.6
|
||||
image: registry-172.22.21.115.sslip.io/dad-group-46/ws:v2.0.9
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
GROUP := "dad-group-46"
|
||||
VERSION := "2.0.6"
|
||||
VERSION := "2.0.9"
|
||||
|
||||
|
||||
kubectl-pods:
|
||||
|
||||
@@ -90,8 +90,11 @@ async function saveGameResult(gameId, result, token) {
|
||||
payload.winner_user_id = result.winnerId;
|
||||
payload.loser_user_id = result.loserId;
|
||||
}
|
||||
|
||||
const authHeader = token.startsWith("Bearer ") ? token : `Bearer ${token}`;
|
||||
|
||||
await axios.put(`${API_URL}/games/${gameId}`, payload, {
|
||||
headers: { Authorization: token },
|
||||
headers: { Authorization: authHeader },
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(`[DB Error] Game ${gameId}:`, error.message);
|
||||
|
||||
Reference in New Issue
Block a user