Skip to content

Commit c7b2583

Browse files
committed
fix
1 parent 5434314 commit c7b2583

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

document-store/src/main/java/org/hypertrace/core/documentstore/mongo/MongoCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ private BasicDBObject prepareInsert(Key key, Document document) throws JsonProce
332332
long now = System.currentTimeMillis();
333333
BasicDBObject insertDbObject = prepareDocument(key, document, now);
334334
insertDbObject.put(CREATED_TIME, now);
335+
insertDbObject.put(LAST_UPDATE_TIMESTAMP_ISO_8601, new Date(now));
335336
return insertDbObject;
336337
}
337338

@@ -340,7 +341,6 @@ private BasicDBObject prepareDocument(Key key, Document document, long now)
340341
BasicDBObject basicDBObject = getSanitizedBasicDBObject(document);
341342
basicDBObject.put(ID_KEY, key.toString());
342343
basicDBObject.put(LAST_UPDATED_TIME, now);
343-
basicDBObject.put(LAST_UPDATE_TIMESTAMP_ISO_8601, new Date(now));
344344
return basicDBObject;
345345
}
346346

0 commit comments

Comments
 (0)