diff --git a/CHANGELOG.md b/CHANGELOG.md index 789768f..87ad6ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Lapis Changelog ## Unreleased Changes +* Added `Collection:read` to view a document's data without editing or session locking it. ([#59]) + +[#59]: https://github.com/nezuo/lapis/pull/59 ## 0.3.1 - July 6, 2024 * Added `Document:keyInfo()`. It returns the last updated `DataStoreKeyInfo` returned from loading, saving, or closing the document. ([#50]) diff --git a/src/Collection.lua b/src/Collection.lua index 4f73871..bc26628 100644 --- a/src/Collection.lua +++ b/src/Collection.lua @@ -192,7 +192,6 @@ function Collection:read(key) if self.options.validate ~= nil then local validateOk, valid, message = pcall(self.options.validate, migrated) - if not validateOk then return Promise.reject(`'validate' threw an error: {valid}`) elseif not valid then