Fixing forgotten id access.

This commit is contained in:
mike12345567 2021-05-13 14:24:55 +01:00
parent 28a7282a8b
commit c87319c267
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)