Skip to content

Commit

Permalink
use different call for OID return in metadata query
Browse files Browse the repository at this point in the history
  • Loading branch information
AO-StreetArt committed Oct 21, 2018
1 parent 307a7e1 commit f98fd78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public ResponseEntity<List<AssetMetadata>> findAssets(
Document metaDoc = mongoFile.getMetadata();
AssetMetadata returnDoc = new AssetMetadata();
logger.info(metaDoc.toString());
returnDoc.setKey(mongoFile.getObjectId().toHexString());
returnDoc.setKey(mongoFile.getId().asObjectId().toString());
returnDoc.setContentType(metaDoc.getString("content-type"));
returnDoc.setFileType(metaDoc.getString("file-type"));
returnDoc.setAssetType(metaDoc.getString("asset-type"));
Expand Down

0 comments on commit f98fd78

Please sign in to comment.