Commit Graph

3 Commits

Author SHA1 Message Date
jordi fita mas 79eee41365 Fix update of weather_forecast
The real problem was that i was trying to update the forecast via
pgx.Pool, not the acquired connection, therefore it did not have the
correct role.

I moved everything to a different function where db is not visible in
scope, just to make sure i did not fuck up anywhere else.
2025-01-29 12:07:29 +01:00
jordi fita mas 9b938dad97 Switch to admin role first thing in camper-weather
The authenticator user has no access to the weather_forecast relation.
2025-01-29 11:19:08 +01:00
jordi fita mas d64e899e0f Add a weather forecast
Requested by customer. Needs a command run in a cron to update the
forecast data from an URL, and only a single URL is supported by now.
2025-01-28 21:37:30 +01:00