Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrvano committed Dec 1, 2023
1 parent b034c60 commit 5d2475f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion main/src/modules/IdentityProcessor/listner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class IdentityListnerService {
private readonly processor: IdentityProcessorService,
private readonly databaseHelper: IdentityDatabaseHelper,
private readonly tasksRepository: TasksRepository,
) { }
) {}

public async preload(): Promise<void> {
this.logger.debug({ event: 'IdentityListener.preload' })
Expand Down
18 changes: 9 additions & 9 deletions main/src/modules/IdentityProcessor/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum JudgementStatus {

@Service()
export class IdentityProcessorService {
constructor(@Inject('logger') private readonly logger: Logger, private readonly databaseHelper: IdentityDatabaseHelper) { }
constructor(@Inject('logger') private readonly logger: Logger, private readonly databaseHelper: IdentityDatabaseHelper) {}

public async processEvent(event: EventModel): Promise<void> {
this.logger.info({
Expand Down Expand Up @@ -129,7 +129,7 @@ export class IdentityProcessorService {
message: 'IdentityProcessor extrinsic args is empty',
extrinsic,
})
return;
return
}

const identityRaw = extrinsic.extrinsic.args
Expand Down Expand Up @@ -172,13 +172,13 @@ export class IdentityProcessorService {
updated_at_block_id: extrinsic.block_id,
}

;['display', 'legal', 'web', 'riot', 'email', 'twitter'].forEach((item) => {
const value = formatHexString(getValueOfField(identityRaw, item))
if (value.trim() !== '') {
//@ts-ignore
identity[item] = value
}
})
;['display', 'legal', 'web', 'riot', 'email', 'twitter'].forEach((item) => {
const value = formatHexString(getValueOfField(identityRaw, item))
if (value.trim() !== '') {
//@ts-ignore
identity[item] = value
}
})

return await this.databaseHelper.saveIdentity(identity)
}
Expand Down

0 comments on commit 5d2475f

Please sign in to comment.