-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete sync operation rebased (#117)
* removed operations, scope sync can partially succeed * refactor bitgo and fireblocks * tests fixed for new interface * removed unused services imports * adding logs to the wallet bulkUpsert method * networkMap is a map, addressed namings, used constants instead of numbers * namings, complete function handles partial success for scoped sync service * lock sync when there's already an in progresss sync for this connection * Trying larger runner * fixed the network caching, and the lock on scope sync * Revert "Trying larger runner" This reverts commit bda1bb6b3154ae3f71740bbbcf7d0aca263649dc. * raw account errors are more precise * fireblocks raw accounts building use external network id * fixed reads for upserts outside of tx scope * exists take the status as a parameter * removed unused function * fixed fireblocks scoped sync mock server declaration --------- Co-authored-by: Matt Schoch <[email protected]>
- Loading branch information
1 parent
4b7f228
commit 6a5e2e9
Showing
26 changed files
with
1,089 additions
and
995 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
apps/vault/src/broker/core/exception/scoped-sync.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { HttpStatus } from '@nestjs/common' | ||
import { ApplicationExceptionParams } from '../../../shared/exception/application.exception' | ||
import { BrokerException } from './broker.exception' | ||
|
||
export class ScopedSyncException extends BrokerException { | ||
constructor(params?: Partial<ApplicationExceptionParams>) { | ||
super({ | ||
message: params?.message || 'Fail to sync provider connection', | ||
suggestedHttpStatusCode: params?.suggestedHttpStatusCode || HttpStatus.UNPROCESSABLE_ENTITY, | ||
...params | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.