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