fix: correct database column name in version comparison query
- Changed 'pricePosition' to 'pricePositionAtEntry' in extreme positions query - Fixed database error: column "pricePosition" does not exist Context: - API was failing with Error 42703 (column not found) - Database schema uses 'pricePositionAtEntry', not 'pricePosition' - Version comparison section now loads correctly in analytics dashboard
This commit is contained in:
@@ -78,7 +78,7 @@ export async function GET() {
|
|||||||
WHERE "exitReason" IS NOT NULL
|
WHERE "exitReason" IS NOT NULL
|
||||||
AND "exitReason" NOT LIKE '%CLEANUP%'
|
AND "exitReason" NOT LIKE '%CLEANUP%'
|
||||||
AND "isTestTrade" = false
|
AND "isTestTrade" = false
|
||||||
AND "pricePosition" < 15
|
AND "pricePositionAtEntry" < 15
|
||||||
GROUP BY "indicatorVersion"
|
GROUP BY "indicatorVersion"
|
||||||
ORDER BY version DESC
|
ORDER BY version DESC
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user