Fixing forgotten id access.
This commit is contained in:
parent
9f09c76cce
commit
b5d23b19ff
|
@ -47,7 +47,7 @@ exports.clearLock = async (devAppId, user) => {
|
|||
return
|
||||
}
|
||||
const userId = getGlobalIDFromUserMetadataID(user._id)
|
||||
if (value !== userId) {
|
||||
if (value._id !== userId) {
|
||||
throw "User does not hold lock, cannot clear it."
|
||||
}
|
||||
await devAppClient.delete(devAppClient)
|
||||
|
|
Loading…
Reference in New Issue