Permalink
Browse files

Merge pull request #24 from matthusby/patch-2

Return undefined if the property doesn't exist on this record in mongodb...
  • Loading branch information...
2 parents 0d5b09e + 520af0a commit 12fcdf7d57a701b72d9260258faf302188e2fceb @evanmiller evanmiller committed Jul 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/db_adapters/boss_db_adapter_mongodb.erl
@@ -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)))]).

0 comments on commit 12fcdf7

Please sign in to comment.