-
Type: Task
-
Resolution: Duplicate
-
Affects Version/s: None
-
Component/s: None
-
None
If an existing document has timeless.save called on it and then a document in that collection is created with Collection.create, the second document will not get a created_at timestamp.
The original implementation assumed that clear_timeless_option would be called once for each timestamp module it included. However, it is only called once during an update since the create callback does not get called.
This implementation adds an alternate clear_timeless_option that will get called if the document is already persisted and decrements the counter for each timestamp module that is included since it will only be called once (by the update callback).