Return undefined if the property doesn't exist on this record in mongodb... #24

Merged
merged 1 commit into from Jul 18, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −0
Split
@@ -326,6 +326,8 @@ pack_id(BossId) ->
[]
end.
+unpack_id(_Type, undefined) ->
+ undefined;
unpack_id(Type, MongoId) ->
lists:concat([Type, "-", binary_to_list(dec2hex(element(1, MongoId)))]).