mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
use seconds (as stated in config)
timestamps in JS are ms. multiplied config value with 1000 so it's converted to ms
This commit is contained in:
parent
5f63cfac78
commit
b95d011933
@ -83,7 +83,7 @@ function get_image_hash(uuid, callback) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
callback(err, -1, null);
|
callback(err, -1, null);
|
||||||
} else {
|
} else {
|
||||||
if (details && details.time + config.local_cache_time >= new Date().getTime()) {
|
if (details && details.time + config.local_cache_time * 1000 >= new Date().getTime()) {
|
||||||
// uuid known + recently updated
|
// uuid known + recently updated
|
||||||
console.log(uuid + " uuid known & recently updated");
|
console.log(uuid + " uuid known & recently updated");
|
||||||
callback(null, (details.hash ? 1 : 0), details.hash);
|
callback(null, (details.hash ? 1 : 0), details.hash);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user