Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Return undefined if the property doesn't exist on this record in mong…

…odb.
  • Loading branch information...
commit 520af0a2dbb1c8db167beae1b3dfaf53e59a9244 1 parent 0d5b09e
Matt Husby matthusby authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/db_adapters/boss_db_adapter_mongodb.erl
2  src/db_adapters/boss_db_adapter_mongodb.erl
View
@@ -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)))]).
Please sign in to comment.
Something went wrong with that request. Please try again.