Skip to content

Commit 7a6a737

Browse files
committed
style(guilds-worker): Format long lines for improved readability
1 parent 161b60a commit 7a6a737

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

apps/osint/src/workers/guilds.worker.ts

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,20 @@ export class GuildsWorker {
153153
guildSnapshot.realm,
154154
);
155155
if (guildById) {
156-
logStatus = await this.guildLogService.detectAndLogChanges(guildById, guildEntity);
156+
logStatus = await this.guildLogService.detectAndLogChanges(
157+
guildById,
158+
guildEntity,
159+
);
157160
masterStatus = await this.guildMasterService.detectAndLogGuildMasterChange(
158161
guildById,
159162
roster,
160163
);
161164
}
162165
} else {
163-
logStatus = await this.guildLogService.detectAndLogChanges(guildSnapshot, guildEntity);
166+
logStatus = await this.guildLogService.detectAndLogChanges(
167+
guildSnapshot,
168+
guildEntity,
169+
);
164170
masterStatus = await this.guildMasterService.detectAndLogGuildMasterChange(
165171
guildSnapshot,
166172
roster,
@@ -174,7 +180,10 @@ export class GuildsWorker {
174180
master: masterStatus,
175181
};
176182

177-
guildEntity.status = this.aggregateGuildStatus(guildEntity.status, operationStatuses);
183+
guildEntity.status = this.aggregateGuildStatus(
184+
guildEntity.status,
185+
operationStatuses,
186+
);
178187

179188
const hasErrors = hasAnyGuildErrorInString(guildEntity.status);
180189
const isSuccess = isAllGuildSuccessInString(guildEntity.status);
@@ -249,15 +258,29 @@ export class GuildsWorker {
249258
statusString: string | undefined;
250259
errorIndicator: string;
251260
}> = [
252-
{ name: 'ROSTER', statusString: operationStatuses.roster, errorIndicator: 'r' },
253-
{ name: 'MEMBERS', statusString: operationStatuses.roster, errorIndicator: 'm' },
261+
{
262+
name: 'ROSTER',
263+
statusString: operationStatuses.roster,
264+
errorIndicator: 'r',
265+
},
266+
{
267+
name: 'MEMBERS',
268+
statusString: operationStatuses.roster,
269+
errorIndicator: 'm',
270+
},
254271
{ name: 'LOGS', statusString: operationStatuses.logs, errorIndicator: 'l' },
255-
{ name: 'MASTER', statusString: operationStatuses.master, errorIndicator: 'g' },
272+
{
273+
name: 'MASTER',
274+
statusString: operationStatuses.master,
275+
errorIndicator: 'g',
276+
},
256277
];
257278

258279
for (const operation of operations) {
259280
// Check if the error indicator exists in the status string (lowercase = error)
260-
const hasError = operation.statusString?.includes(operation.errorIndicator.toLowerCase()) ?? false;
281+
const hasError =
282+
operation.statusString?.includes(operation.errorIndicator.toLowerCase()) ??
283+
false;
261284

262285
aggregated = setGuildStatusString(
263286
aggregated,

0 commit comments

Comments
 (0)