fixed some old TODOs

This commit is contained in:
Danny Coates 2018-12-18 13:55:46 -08:00
parent ac87fdff97
commit 6cc12528b3
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 15 additions and 8 deletions

View file

@ -52,7 +52,9 @@ class DB {
const filePath = `${prefix}-${id}`;
await this.storage.set(filePath, file);
this.redis.hset(id, 'prefix', prefix);
this.redis.hmset(id, meta);
if (meta) {
this.redis.hmset(id, meta);
}
this.redis.expire(id, expireSeconds);
}