fix bug in caching time being ignored
This commit is contained in:
parent
9cdf909994
commit
58ff75c728
|
@ -129,7 +129,7 @@ export class ImageFileDBService {
|
|||
): AsyncFailable<number> {
|
||||
try {
|
||||
const result = await this.imageDerivativeRepo.delete({
|
||||
last_read: LessThan(new Date()),
|
||||
last_read: LessThan(new Date(Date.now() - olderThanSeconds * 1000)),
|
||||
});
|
||||
|
||||
return result.affected ?? 0;
|
||||
|
|
Loading…
Reference in a new issue