fix: TeslaMate token is in private schema since release 2.2.0 (#444)

This commit is contained in:
Toni
2026-02-06 14:30:35 +02:00
committed by GitHub
parent 853eaa9500
commit b7985aaf30

View File

@@ -76,7 +76,7 @@ func TeslaMateAPICarsCommandV1(c *gin.Context) {
query := `
SELECT
eid as TeslaVehicleID,
(SELECT access FROM tokens LIMIT 1) as TeslaAccessToken
(SELECT access FROM private.tokens LIMIT 1) as TeslaAccessToken
FROM cars
WHERE id = $1
LIMIT 1;`