Skip to content

Commit

Permalink
Move bids out of their creating participant's entity group (fixes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
indyjo committed Mar 8, 2014
1 parent 4461bb7 commit 1fefe87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitwrk/gae/gae_main.go
Expand Up @@ -92,8 +92,8 @@ func EnqueueBid(c appengine.Context, bid *Bid) (*datastore.Key, error) {
}

//parentKey := ArticleKey(c, bid.Article)
parentKey := AccountKey(c, bid.Participant)
if key, err := datastore.Put(c, datastore.NewIncompleteKey(c, "Bid", parentKey), bidCodec{bid}); err != nil {
//parentKey := AccountKey(c, bid.Participant)
if key, err := datastore.Put(c, datastore.NewIncompleteKey(c, "Bid", nil), bidCodec{bid}); err != nil {
return err
} else {
bidKey = key
Expand Down

0 comments on commit 1fefe87

Please sign in to comment.