mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 01:23:31 +01:00
feat: add paid author and conference hosting with Stripe
This commit is contained in:
1 parent
b09ef0e5b0
commit
410863d253
54 files changed
+3263
-369
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { reconcileNeverExpiration } from "../core/billing/expiration";
|
||||
import { Model, Document } from "mongoose";
|
||||
import * as schedule from "node-schedule";
|
||||
import AnonymizedGistModel from "../core/model/anonymizedGists/anonymizedGists.model";
|
||||
@@ -62,6 +63,7 @@ export function repositoryMaintenanceQuery(now: Date) {
|
||||
}
|
||||
|
||||
export async function runRepositoryStatusCheck(now = new Date()) {
|
||||
await reconcileNeverExpiration(now);
|
||||
logger.info("checking repository status and unused repositories");
|
||||
const fourMonthAgo = new Date(now);
|
||||
fourMonthAgo.setMonth(fourMonthAgo.getMonth() - 4);
|
||||
|
||||
Reference in new issue
Block a user