Skip to content

Commit

Permalink
Megalodon char count (#273)
Browse files Browse the repository at this point in the history
* Update package.json

* Update appveyor.yml

* fix build

* Get the account id correctly

---------

Co-authored-by: Lemonynade <[email protected]>
  • Loading branch information
aneillans and mvdicarlo authored Nov 1, 2023
1 parent 4092dc4 commit 3fb67e9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export abstract class Megalodon extends Website {
private async getAndStoreInstanceInfo(profileId: string, data: MegalodonAccountData) {
const client = generator(this.megalodonService, data.website, data.token);
const instance = await client.getInstance();

this.logger.debug("*************");
this.logger.debug(`Account ID ${profileId}`);
this.logger.debug(instance.data);
this.logger.debug("*************");
this.storeAccountInformation(profileId, INFO_KEY, instance.data);
}

Expand Down Expand Up @@ -199,7 +202,7 @@ export abstract class Megalodon extends Website {
submissionPart: SubmissionPart<MastodonFileOptions>,
defaultPart: SubmissionPart<DefaultOptions>,
): ValidationParts {
this.getInstanceSettings(defaultPart.accountId);
this.getInstanceSettings(submissionPart.accountId);

const problems: string[] = [];
const warnings: string[] = [];
Expand Down Expand Up @@ -279,7 +282,7 @@ export abstract class Megalodon extends Website {
submissionPart: SubmissionPart<MastodonNotificationOptions>,
defaultPart: SubmissionPart<DefaultOptions>,
): ValidationParts {
this.getInstanceSettings(defaultPart.accountId);
this.getInstanceSettings(submissionPart.accountId);

const problems = [];
const warnings = [];
Expand Down

0 comments on commit 3fb67e9

Please sign in to comment.