mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-05-06 08:47:20 +02:00
fix bug in caching time being ignored
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user