mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-27 20:45:30 +00:00
This commit is contained in:
commit
77318af563
|
@ -430,7 +430,7 @@ impl Users {
|
||||||
userdeviceid.push(0xff);
|
userdeviceid.push(0xff);
|
||||||
userdeviceid.extend_from_slice(device_id.as_bytes());
|
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"));
|
return Err(Error::BadRequest("device does not exist"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue