Point frontend API base URL at test and restore currency path fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 19:15:46 +05:00
parent 3230cc59ad
commit 76848f4982
2 changed files with 4 additions and 2 deletions

View File

@@ -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