chore: format

This commit is contained in:
kawamataryo
2024-11-22 20:25:03 +09:00
parent b2620dd28c
commit aea7994662
5 changed files with 14 additions and 12 deletions

View File

@@ -19,9 +19,8 @@ export abstract class AbstractService {
),
);
const users = Array.from(userCells).map((userCell) =>
this.extractUserData(userCell),
)
const users = Array.from(userCells)
.map((userCell) => this.extractUserData(userCell))
.filter((user) => {
const isNewUser = !this.crawledUsers.has(user.accountName);
if (isNewUser) {

View File

@@ -1,8 +1,8 @@
import { MESSAGE_NAMES } from "~lib/constants";
import { BSKY_DOMAIN, MESSAGE_NAME_TO_QUERY_PARAM_MAP } from "~lib/constants";
import { wait } from "~lib/utils";
import { AbstractService } from "./abstractService";
import type { CrawledUserInfo } from "~types";
import { AbstractService } from "./abstractService";
export class XService extends AbstractService {
extractUserData(userCell: Element): CrawledUserInfo {