pub async fn get_heatmap_colors(
    conn: &mut AsyncPgConnection
) -> Result<HeatmapColors, ServiceError>
Expand description

Get all four heatmap colors (red, orange, green, black) from the application settings.

Errors

If the connection to the database could not be established. If the colors in the database are not valid hex codes. If there are no colors in the database.