fixed some old TODOs
This commit is contained in:
parent
ac87fdff97
commit
6cc12528b3
9 changed files with 15 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue