mirror of
https://github.com/tobiasehlert/teslamateapi.git
synced 2026-02-27 09:54:18 +08:00
fix: TeslaMate token is in private schema since release 2.2.0 (#444)
This commit is contained in:
@@ -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;`
|
||||
|
||||
Reference in New Issue
Block a user