Skip to content

Commit

Permalink
fix: make sync process less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Dec 17, 2023
1 parent c0c6ccc commit 3904dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/api/asset/data-access/src/lib/api-asset-queue.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ApiAssetQueueService implements OnModuleInit {
async processAssetSyncManyJob(job: Job<AssetSyncManyQueueData, void, string>) {
const { type: network, identity } = job.data
const tag = `processAssetSyncManyJob ${job.id}: [${identity?.providerId}] ->`
await this.discord.bot.debugLog(`${tag} processing ${job.data.assets.length} assets...`, true)
await this.discord.bot.debugLog(`${tag} processing ${job.data.assets.length} assets...`)

await this.discord.bot.debugLog(`${tag} getting owned assets...`)
const owned = await this.getOwnedAssets({ networkType: network, providerId: identity.providerId })
Expand All @@ -55,7 +55,7 @@ export class ApiAssetQueueService implements OnModuleInit {
const toDisconnect = owned.filter((asset) => !job.data.assets.find((a) => a.account === asset.account))

if (!toCreate.length && !toDisconnect.length) {
await this.discord.bot.debugLog(`${tag} nothing to do, exiting...`, true)
await this.discord.bot.debugLog(`${tag} nothing to do, exiting...`)
return
}

Expand Down

0 comments on commit 3904dc5

Please sign in to comment.