mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-26 01:20:27 +01:00
Only remove sleeping state but not add
This commit is contained in:
@@ -31,7 +31,7 @@ async function getCurrentTime(): Promise<void> {
|
|||||||
|
|
||||||
if (redis_state !== active) {
|
if (redis_state !== active) {
|
||||||
await Redis.set('states:developing', String(active))
|
await Redis.set('states:developing', String(active))
|
||||||
await Redis.set('states:sleeping', String(!active))
|
if (redis_state) await Redis.set('states:sleeping', 'false')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user