Changeset 0.28.2 (#183)
This commit is contained in:
@@ -184,7 +184,7 @@ func (h *NotificationHandler) ListPreferences(c *gin.Context) {
|
||||
}
|
||||
|
||||
if h.stores.NotifPrefs == nil {
|
||||
c.JSON(http.StatusOK, []models.NotificationPreference{})
|
||||
c.JSON(http.StatusOK, gin.H{"data": []models.NotificationPreference{}})
|
||||
return
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ func (h *NotificationHandler) ListPreferences(c *gin.Context) {
|
||||
if prefs == nil {
|
||||
prefs = []models.NotificationPreference{}
|
||||
}
|
||||
c.JSON(http.StatusOK, prefs)
|
||||
c.JSON(http.StatusOK, gin.H{"data": prefs})
|
||||
}
|
||||
|
||||
// PUT /api/v1/notifications/preferences/:type
|
||||
|
||||
Reference in New Issue
Block a user