feat: L402 for image/video

This commit is contained in:
2023-05-30 11:17:13 +01:00
parent c9133cb917
commit d5032d6439
6 changed files with 188 additions and 18 deletions

View File

@ -0,0 +1,18 @@
import { Payment, db } from "Db";
import FeedCache from "./FeedCache";
class Payments extends FeedCache<Payment> {
constructor() {
super("PaymentsCache", db.payments);
}
key(of: Payment): string {
return of.url;
}
takeSnapshot(): Array<Payment> {
return [...this.cache.values()];
}
}
export const PaymentsCache = new Payments();