From 76848f49824b943b6bc06b567d67a6be73f3f73d Mon Sep 17 00:00:00 2001 From: GuwandykA Date: Wed, 5 Aug 2026 19:15:46 +0500 Subject: [PATCH] Point frontend API base URL at test and restore currency path fields. Co-authored-by: Cursor --- backend/internal/client/users/db/postgresql.go | 4 +++- frontend/src/js/app.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/internal/client/users/db/postgresql.go b/backend/internal/client/users/db/postgresql.go index 7008c12..b814dfe 100755 --- a/backend/internal/client/users/db/postgresql.go +++ b/backend/internal/client/users/db/postgresql.go @@ -243,7 +243,8 @@ func (r repository) GetCurrency(ctx context.Context) (users.CurrencyDTO, error) q := ` SELECT id, title, - content_tm, content_ru, content_en + content_tm, content_ru, content_en, + path, created_at FROM currency ORDER BY created_at DESC LIMIT 1;` @@ -251,6 +252,7 @@ func (r repository) GetCurrency(ctx context.Context) (users.CurrencyDTO, error) err := r.client.QueryRow(ctx, q).Scan( &cu.Id, &cu.Title, &cu.Content.Tm, &cu.Content.Ru, &cu.Content.En, + &cu.Path, &cu.CreatedAt, ) if err != nil { return cu, err diff --git a/frontend/src/js/app.js b/frontend/src/js/app.js index e9e9e8d..3068359 100755 --- a/frontend/src/js/app.js +++ b/frontend/src/js/app.js @@ -26,7 +26,7 @@ function removeByClassName(className) { } function baseUrl() { - return 'http://216.250.10.141'; + return 'https://test.webulgam.com'; } function getData(url = '') {