Permalink
Browse files

Fix run-after-load for retrieve of single entity

  • Loading branch information...
1 parent 0f75382 commit a76b1423cc61d0f411d87d13d8a9c785bef108ea @shawnlewis shawnlewis committed Feb 14, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/appengine_magic/services/datastore.clj
@@ -362,10 +362,11 @@
(let [key-object (make-key-from-value key-value-or-values parent)
entity (.get (get-datastore-service) key-object)
raw-properties (into {} (.getProperties entity))
- entity-record (run-after-load (record entity-record-type))]
+ entity-record (record entity-record-type)]
(with-meta
- (merge entity-record (entity->properties raw-properties
- (get-clj-properties entity-record)))
+ (run-after-load
+ (merge entity-record (entity->properties raw-properties
+ (get-clj-properties entity-record))))
{:key (.getKey entity)})))))

0 comments on commit a76b142

Please sign in to comment.