Fixing forgotten id access.

This commit is contained in:
mike12345567 2021-05-13 14:24:55 +01:00
parent 9f09c76cce
commit b5d23b19ff
1 changed files with 1 additions and 1 deletions

View File

@ -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)