(userId: string, path: string)
| 12 | const locksByKey = new Map<string, WebDavLock>(); |
| 13 | |
| 14 | function buildKey(userId: string, path: string) { |
| 15 | return `${userId}:${path}`; |
| 16 | } |
| 17 | |
| 18 | function isExpired(lock: WebDavLock) { |
| 19 | return lock.expiresAt.getTime() <= Date.now(); |
no outgoing calls
no test coverage detected