PublicDashboards: refactor service (#57372)

This commit is contained in:
Ezequiel Victorero
2022-10-21 09:37:38 -03:00
committed by GitHub
parent f161c5407a
commit 5b9959014c
13 changed files with 1605 additions and 1679 deletions
@@ -50,7 +50,7 @@ func RequiresExistingAccessToken(publicDashboardService publicdashboards.Service
}
// Check that the access token references an enabled public dashboard
exists, err := publicDashboardService.AccessTokenExists(c.Req.Context(), accessToken)
exists, err := publicDashboardService.PublicDashboardEnabledExistsByAccessToken(c.Req.Context(), accessToken)
if err != nil {
c.JsonApiErr(http.StatusInternalServerError, "Failed to query access token", nil)
return