Skip to content
Snippets Groups Projects

Refactor proof manager

Files
73
@@ -27,10 +27,10 @@ export class ConnectionsService {
@@ -27,10 +27,10 @@ export class ConnectionsService {
tenantId: string,
tenantId: string,
): Observable<EventDidcommConnectionsGetAll['data']> {
): Observable<EventDidcommConnectionsGetAll['data']> {
return this.natsClient
return this.natsClient
.send<EventDidcommConnectionsGetAll, EventDidcommConnectionsGetAllInput>(
.send<
EventDidcommConnectionsGetAll.token,
EventDidcommConnectionsGetAll,
{ tenantId },
EventDidcommConnectionsGetAllInput
)
>(EventDidcommConnectionsGetAll.token, { tenantId })
.pipe(map((result) => result.data));
.pipe(map((result) => result.data));
}
}
@@ -62,10 +62,10 @@ export class ConnectionsService {
@@ -62,10 +62,10 @@ export class ConnectionsService {
idOrDid: string,
idOrDid: string,
): Observable<EventDidcommConnectionsBlock['data']> {
): Observable<EventDidcommConnectionsBlock['data']> {
return this.natsClient
return this.natsClient
.send<EventDidcommConnectionsBlock, EventDidcommConnectionsBlockInput>(
.send<
EventDidcommConnectionsBlock.token,
EventDidcommConnectionsBlock,
{ tenantId, idOrDid },
EventDidcommConnectionsBlockInput
)
>(EventDidcommConnectionsBlock.token, { tenantId, idOrDid })
.pipe(map((result) => result.data));
.pipe(map((result) => result.data));
}
}
}
}
Loading