Fixing forgotten id access.
This commit is contained in:
parent
28a7282a8b
commit
c87319c267
|
@ -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