mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 01:01:39 +01:00
clean up User.itemLock()
This commit is contained in:
@@ -78,8 +78,7 @@ export class User {
|
||||
|
||||
public async itemLock(): Promise<boolean> {
|
||||
const lock = await redis.get(`user:${this.id}:itemlock`);
|
||||
if (lock === '0') return false;
|
||||
return true;
|
||||
return lock === '1';
|
||||
};
|
||||
|
||||
public async setLock(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user