mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Update backend/src/apis/DltConnectorClient.test.ts
Co-authored-by: clauspeterhuebner <86960882+clauspeterhuebner@users.noreply.github.com>
This commit is contained in:
parent
83ae9060b9
commit
04b6238612
@ -136,8 +136,8 @@ describe('transmitTransaction', () => {
|
||||
try {
|
||||
await DltConnectorClient.getInstance()?.transmitTransaction(
|
||||
localTransaction,
|
||||
'senderCommunityUUid',
|
||||
'recipientCommunity',
|
||||
'senderCommunityUuid',
|
||||
'recipientCommunityUuid',
|
||||
)
|
||||
} catch (e) {
|
||||
expect(e).toMatchObject(
|
||||
|
||||
@ -80,8 +80,8 @@ export class DltConnectorClient {
|
||||
*/
|
||||
public async transmitTransaction(
|
||||
transaction: DbTransaction,
|
||||
senderCommunityUuid = '',
|
||||
recipientCommunityUuid = '',
|
||||
senderCommunityUuid?: string,
|
||||
recipientCommunityUuid?: string,
|
||||
): Promise<string> {
|
||||
const typeString = getTransactionTypeString(transaction.typeId)
|
||||
const amountString = transaction.amount.toString()
|
||||
|
||||
@ -30,6 +30,7 @@ export const determineCrossGroupType = ({
|
||||
type,
|
||||
}: TransactionDraft): CrossGroupType => {
|
||||
if (
|
||||
!recipientUser.communityUuid ||
|
||||
recipientUser.communityUuid === '' ||
|
||||
senderUser.communityUuid === recipientUser.communityUuid ||
|
||||
type === TransactionType.CREATION
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user