Merge remote-tracking branch 'origin/main' into gossip-model

This commit is contained in:
2023-06-13 10:05:53 +01:00
40 changed files with 604 additions and 151 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();