mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
convert uuid params to lower case, store only lower case uuids
This commit is contained in:
@@ -67,6 +67,8 @@ exp.update_timestamp = function(uuid, hash) {
|
||||
exp.save_hash = function(uuid, hash) {
|
||||
logging.log(uuid + " cache: saving hash");
|
||||
var time = new Date().getTime();
|
||||
// store uuid in lower case if not null
|
||||
uuid = uuid && uuid.toLowerCase();
|
||||
redis.hmset(uuid, "h", hash, "t", time);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user