Skip to content

Commit

Permalink
env bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Yumusak committed Jul 21, 2024
1 parent 6c04bcd commit 2745502
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions frontend/src/routes/edit/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export async function fetchEdit() {

document.getElementById("update-avatar").addEventListener("click", async () => {
const image = document.getElementById("avatar-image").files[0];
if (!image)
{
alert("U need select image first!!");
return;
}
const formData = new FormData();
formData.append('image', image);

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/routes/users/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export async function fetchUsers() {

document.getElementById("search-button").addEventListener("click", async () => {
const searchValue = document.getElementById("search").value;
if (searchValue == "")
return;
const response = await fetch(searchUrl + "?page=" + currentPage + "&limit=5" +"&key=" + searchValue, {
method: "GET",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/users/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
<div class="col-12">
<div class="row no-gutters">
<div class="col-lg-8 col-md-6 col-sm-12 p-0">
<input type="text" placeholder="Search..." class="form-control" id="search" name="search">
<input type="text" placeholder="Search..." class="form-control" id="search" name="search" required>
</div>
<div class="col-lg-1 col-md-3 col-sm-12 p-0">
<button id="search-button" class="btn btn-base">
Expand Down
2 changes: 1 addition & 1 deletion gameplayservice/gameplayservice/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

GetUserByID_URL = "http://apigateway:8000/user/get/id"
CheckGame_URL = "http://apigateway:8000/game/check"
GameUpdate_URL = "http://apigateway:8000/game/update"
GameUpdate_URL = "http://gameservice:8010/game/update"


class Pong(AsyncWebsocketConsumer):
Expand Down

0 comments on commit 2745502

Please sign in to comment.