mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-01 21:21:06 +00:00
Merge branch 'dev' into distribution
This commit is contained in:
commit
b160eee8d2
85 changed files with 906 additions and 1639 deletions
|
|
@ -102,10 +102,7 @@ export class Config {
|
|||
if (!this.rawConfig) {
|
||||
throw new Error("Config not loaded. Call load() first.");
|
||||
}
|
||||
if (this.rawConfig.managed) {
|
||||
// LETS NOT WORRY ABOUT THE SERVER SECRET WHEN MANAGED
|
||||
return;
|
||||
}
|
||||
|
||||
license.setServerSecret(this.rawConfig.server.secret!);
|
||||
|
||||
await this.checkKeyStatus();
|
||||
|
|
@ -158,10 +155,6 @@ export class Config {
|
|||
return false;
|
||||
}
|
||||
|
||||
public isManagedMode() {
|
||||
return typeof this.rawConfig?.managed === "object";
|
||||
}
|
||||
|
||||
public async checkSupporterKey() {
|
||||
const [key] = await db.select().from(supporterKey).limit(1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue