mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 14:52:40 +00:00
e4efe121da
[docstore] reject doc updates that decrement the doc version GitOrigin-RevId: 533cc5ece8d5684c85b2f63fa2a093c68f6b5877
19 lines
469 B
JavaScript
19 lines
469 B
JavaScript
// import Errors from object-persistor to pass instanceof checks
|
|
const OError = require('@overleaf/o-error')
|
|
const { Errors } = require('@overleaf/object-persistor')
|
|
|
|
class Md5MismatchError extends OError {}
|
|
|
|
class DocModifiedError extends OError {}
|
|
|
|
class DocRevValueError extends OError {}
|
|
|
|
class DocVersionDecrementedError extends OError {}
|
|
|
|
module.exports = {
|
|
Md5MismatchError,
|
|
DocModifiedError,
|
|
DocRevValueError,
|
|
DocVersionDecrementedError,
|
|
...Errors,
|
|
}
|