@@ -46,12 +46,12 @@ func UpdateTeamPreferences(d *schema.ResourceData, meta interface{}) error {
4646
4747 teamID := int64 (d .Get ("team_id" ).(int ))
4848 theme := d .Get ("theme" ).(string )
49- homeDashboardId := int64 (d .Get ("home_dashboard_id" ).(int ))
49+ homeDashboardID := int64 (d .Get ("home_dashboard_id" ).(int ))
5050 timezone := d .Get ("timezone" ).(string )
5151
5252 preferences := gapi.Preferences {
5353 Theme : theme ,
54- HomeDashboardId : homeDashboardId ,
54+ HomeDashboardID : homeDashboardID ,
5555 Timezone : timezone ,
5656 }
5757
@@ -75,7 +75,7 @@ func ReadTeamPreferences(d *schema.ResourceData, meta interface{}) error {
7575
7676 d .SetId (strconv .FormatInt (teamID , 10 ))
7777 d .Set ("theme" , preferences .Theme )
78- d .Set ("home_dashboard_id" , preferences .HomeDashboardId )
78+ d .Set ("home_dashboard_id" , preferences .HomeDashboardID )
7979 d .Set ("timezone" , preferences .Timezone )
8080
8181 return nil
@@ -91,7 +91,7 @@ func DeleteTeamPreferences(d *schema.ResourceData, meta interface{}) error {
9191 teamID := int64 (d .Get ("team_id" ).(int ))
9292 defaultPreferences := gapi.Preferences {}
9393
94- err := client .UpdateTeamPreferences (teamID , & defaultPreferences )
94+ err := client .UpdateTeamPreferences (teamID , defaultPreferences )
9595 if err != nil {
9696 if strings .HasPrefix (err .Error (), "status: 404" ) {
9797 d .SetId ("" )
0 commit comments