#45498: use dashboards.id rather than uid and org_id in grn

This commit is contained in:
Artur Wierzbicki
2022-04-13 16:40:16 +02:00
parent 43c98820ae
commit 11d60d827a

View File

@@ -364,7 +364,7 @@ func (hs *HTTPServer) postDashboard(c *models.ReqContext, cmd models.SaveDashboa
if dashboard != nil {
if err := hs.entityEventsService.Save(ctx, entityevents.SaveActionCmd{
Grn: fmt.Sprintf("database/%d/dashboards/%s", dashboard.OrgId, dashboard.Uid),
Grn: fmt.Sprintf("database/dashboards/%d", dashboard.Id),
EventType: entityevents.EntityEventTypeUpdate,
}); err != nil {
hs.log.Warn("failed to save dashboard entity event", "uid", dashboard.Uid, "error", err)