MCPcopy Index your code
hub / github.com/scality/cloudserver / isExpired

Method isExpired

lib/api/apiUtils/object/objectLockHelpers.js:188–191  ·  view source on GitHub ↗

* ObjectLockInfo.isExpired * @returns {bool} - True if the retention policy has expired

()

Source from the content-addressed store, hash-verified

186 * @returns {bool} - True if the retention policy has expired
187 */
188 isExpired() {
189 const now = moment();
190 return this.date === null || now.isSameOrAfter(this.date);
191 }
192
193 /**
194 * ObjectLockInfo.isExtended

Callers 2

isLockedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected