Skip to content

Commit 9d1419c

Browse files
get dashboard by user to add tile
1 parent 886c1e0 commit 9d1419c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/http/users/dashboards.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub async fn add_tile(
136136
};
137137

138138
let mut dashboard = DASHBOARDS
139-
.get_dashboard(dashboard_id)
139+
.get_dashboard_by_user(dashboard_id, &user_id)
140140
.await
141141
.ok_or(DashboardError::Metadata("Dashboard does not exist"))?;
142142
dashboard.tiles.as_mut().unwrap().push(tile.clone());

0 commit comments

Comments
 (0)