Skip to content

Commit e21428a

Browse files
committed
Update put to be consistent with put_writes wrt ttl
1 parent e9acfd3 commit e21428a

File tree

1 file changed

+1
-1
lines changed
  • libs/langgraph-checkpoint-mongodb/langgraph/checkpoint/mongodb

1 file changed

+1
-1
lines changed

libs/langgraph-checkpoint-mongodb/langgraph/checkpoint/mongodb/saver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def put(
390390
"checkpoint_id": checkpoint_id,
391391
}
392392
if self.ttl:
393-
upsert_query["created_at"] = datetime.now()
393+
doc["created_at"] = datetime.now()
394394

395395
self.checkpoint_collection.update_one(upsert_query, {"$set": doc}, upsert=True)
396396
return {

0 commit comments

Comments
 (0)