Merge pull request 'Implement devices API (#20)' (#97) from fix into master

This commit is contained in:
Timo Kösters 2020-06-03 14:12:01 +02:00
commit 77318af563

View file

@ -430,7 +430,7 @@ impl Users {
userdeviceid.push(0xff);
userdeviceid.extend_from_slice(device_id.as_bytes());
if self.userdeviceid_metadata.get(userdeviceid)?.is_none() {
if self.userdeviceid_metadata.get(&userdeviceid)?.is_none() {
return Err(Error::BadRequest("device does not exist"));
}