Closed nezuo closed 2 months ago
Example implementation:
UpdateAsync(function(oldData) if oldData.lockId == document.lockId then oldData.lockId = nil return oldData end return nil end)
As long as the current lock is still the same as the documents, it should be safe to remove it.
These are the cases a document will fail to close that we should attempt to remove the session lock:
validate
beforeSave
beforeClose
Closed by #66.
Example implementation:
As long as the current lock is still the same as the documents, it should be safe to remove it.