Rocky_Mountain_Vending/.pnpm-store/v10/files/02/0e4c15fe6701d128cd48ca89e6ab4bfcbd163b257111dcb3fa172124c6cb42992e74d5395388c6c078aaad6cfd8d49947c9285cbb96fab4ba0621fecb79cbd
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

22 lines
711 B
Text

import { Scheduler } from '../Scheduler';
import { SubscriptionLog } from './SubscriptionLog';
export class SubscriptionLoggable {
public subscriptions: SubscriptionLog[] = [];
// @ts-ignore: Property has no initializer and is not definitely assigned
scheduler: Scheduler;
logSubscribedFrame(): number {
this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
return this.subscriptions.length - 1;
}
logUnsubscribedFrame(index: number) {
const subscriptionLogs = this.subscriptions;
const oldSubscriptionLog = subscriptionLogs[index];
subscriptionLogs[index] = new SubscriptionLog(
oldSubscriptionLog.subscribedFrame,
this.scheduler.now()
);
}
}