feat: importer IMVU accounts and settings from the console (#14)
Co-authored-by: dhkatz <[email protected]>
This commit was merged in pull request #14.
This commit is contained in:
1 parent
7ece681eef
commit
e6a97be894
16 files changed
+5538
-13
No files matched your search
@@ -63,7 +63,7 @@ for (const id of providers) {
|
||||
}
|
||||
const ageService = new AgeService(db, providers.map((id) => ageProviders[id]!()));
|
||||
|
||||
const { app, age, rooms, products, imports } = createApp({ db, auth, imvu, age: ageService, apiURL, webURL, settings });
|
||||
const { app, age, rooms, products, imports, importers } = createApp({ db, auth, imvu, age: ageService, apiURL, webURL, settings });
|
||||
app.listen({ port, hostname: env.HOST ?? "0.0.0.0" });
|
||||
|
||||
// Age answers that can change (IMVU's) are checked again when they expire, a few at a time; revisions missing their
|
||||
@@ -90,5 +90,11 @@ const importRecheck = () =>
|
||||
.recheck(200)
|
||||
.then((r) => (r.queued || r.withdrawn.length) && console.log(`imports: ${r.queued} rechecks queued, ${r.withdrawn.length} withdrawn`))
|
||||
.catch((e) => console.error("import rechecks:", e));
|
||||
setInterval(importRecheck, 60 * 60 * 1000);
|
||||
setInterval(() => {
|
||||
importRecheck();
|
||||
importers
|
||||
.expireSealed()
|
||||
.then((n) => n && console.log(`imports: ${n} sealed importer passwords expired`))
|
||||
.catch((e) => console.error("importer passwords:", e));
|
||||
}, 60 * 60 * 1000);
|
||||
console.log(`t5de-hub API on ${apiURL} (website ${webURL})`);
|
||||
Reference in new issue
Block a user