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 = '') {