1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Fixing forgotten id access.

This commit is contained in:
mike12345567 2021-05-13 14:24:55 +01:00
parent 9f09c76cce
commit b5d23b19ff

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)