Skip to content

Commit 010369f

Browse files
chore: update scan function
1 parent 52ae3ad commit 010369f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/types/integration.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *InstalledIntegrationConfig) Scan(src interface{}) error {
3838
return fmt.Errorf("tried to scan from %T instead of string or bytes", src)
3939
}
4040

41-
return json.Unmarshal(data, &c)
41+
return json.Unmarshal(data, c)
4242
}
4343

4444
// For serializing to db
@@ -129,7 +129,7 @@ func (c *AccountConfig) Scan(src any) error {
129129
return fmt.Errorf("tried to scan from %T instead of string or bytes", src)
130130
}
131131

132-
return json.Unmarshal(data, &c)
132+
return json.Unmarshal(data, c)
133133
}
134134

135135
// For serializing to db
@@ -164,7 +164,7 @@ func (r *AgentReport) Scan(src any) error {
164164
return fmt.Errorf("tried to scan from %T instead of string or bytes", src)
165165
}
166166

167-
return json.Unmarshal(data, &r)
167+
return json.Unmarshal(data, r)
168168
}
169169

170170
// For serializing to db
@@ -217,7 +217,7 @@ func (c *CloudServiceConfig) Scan(src any) error {
217217
return fmt.Errorf("tried to scan from %T instead of string or bytes", src)
218218
}
219219

220-
return json.Unmarshal(data, &c)
220+
return json.Unmarshal(data, c)
221221
}
222222

223223
// For serializing to db

0 commit comments

Comments
 (0)