Point frontend API base URL at test and restore currency path fields.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3230cc59ad
commit
76848f4982
2 files changed
+4
-2
No files matched your search
@@ -243,7 +243,8 @@ func (r repository) GetCurrency(ctx context.Context) (users.CurrencyDTO, error)
|
|||||||
|
|
||||||
q := ` SELECT
|
q := ` SELECT
|
||||||
id, title,
|
id, title,
|
||||||
content_tm, content_ru, content_en
|
content_tm, content_ru, content_en,
|
||||||
|
path, created_at
|
||||||
FROM currency
|
FROM currency
|
||||||
ORDER BY created_at DESC
|
ORDER BY created_at DESC
|
||||||
LIMIT 1;`
|
LIMIT 1;`
|
||||||
@@ -251,6 +252,7 @@ func (r repository) GetCurrency(ctx context.Context) (users.CurrencyDTO, error)
|
|||||||
err := r.client.QueryRow(ctx, q).Scan(
|
err := r.client.QueryRow(ctx, q).Scan(
|
||||||
&cu.Id, &cu.Title,
|
&cu.Id, &cu.Title,
|
||||||
&cu.Content.Tm, &cu.Content.Ru, &cu.Content.En,
|
&cu.Content.Tm, &cu.Content.Ru, &cu.Content.En,
|
||||||
|
&cu.Path, &cu.CreatedAt,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cu, err
|
return cu, err
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function removeByClassName(className) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function baseUrl() {
|
function baseUrl() {
|
||||||
return 'http://216.250.10.141';
|
return 'https://test.webulgam.com';
|
||||||
}
|
}
|
||||||
|
|
||||||
function getData(url = '') {
|
function getData(url = '') {
|
||||||
|
|||||||
Reference in new issue
Block a user