Skip to content

Commit aabcbb8

Browse files
committed
Item stream example updated in ReadMe
1 parent 59edf9f commit aabcbb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ const (
102102
tamber.DefaultProjectKey = "Mu6DUPXdDYe98cv5JIfX"
103103

104104
items := Database.LoadItems()
105-
itemUpdates := make([]*tamber.ItemParams, len(items))
105+
itemUpdates := make([]*tamber.ItemUpdateParams, len(items))
106106
for i, item := range items {
107-
itemUpdates[i] = &tamber.ItemParams{Id: item.Id, Updates: &tamber.ItemUpdates{Add: tamber.ItemFeatures{Properties: item.Properties}}}
107+
itemUpdates[i] = &tamber.ItemUpdateParams{Id: item.Id, Updates: tamber.ItemUpdates{Add: tamber.ItemFeatures{Properties: item.Properties}}}
108108
}
109109

110110
// You may optionally supply a channel to read updated items.

0 commit comments

Comments
 (0)