Skip to content

Commit 0d2df7a

Browse files
committed
update for analytic changes
1 parent f983c39 commit 0d2df7a

File tree

10 files changed

+117
-62
lines changed

10 files changed

+117
-62
lines changed

assets/createBeerItems.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ do
2525

2626
json=$(cat $filename | jq $itemIndex) #get the full json of an item
2727
id=$(echo $json | jq $idIndex) #get the value of the itemId field
28+
fullJson=$(echo $json | jq '.documentType="item"')
2829

2930
# add to the database (if you are on a different platform
3031
# change the folder location of cblite)
31-
./mac/cblite put --create $dbFileName $id "$json"
32+
./mac/cblite put --create $dbFileName $id "$fullJson"
3233
done
3334

3435
# you can check by listing the files in the database

assets/startingWarehouses.zip

11.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)