Skip to content

Commit

Permalink
feat(assets): fix assets service interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Harasz committed May 24, 2022
1 parent 50a014e commit c9c6a87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api/classes/modules_assets.AssetsService.md
Expand Up @@ -178,7 +178,7 @@ ___

### getOfferedAssets

**getOfferedAssets**(`options`): `Promise`<[`Asset`](../interfaces/modules_assets.Asset.md)[]\>
**getOfferedAssets**(`options?`): `Promise`<[`Asset`](../interfaces/modules_assets.Asset.md)[]\>

Retrieve assets offered to the given user.

Expand Down
Expand Up @@ -12,6 +12,6 @@

### did

**did**: `string`
`Optional` **did**: `string`

DID of the user
2 changes: 1 addition & 1 deletion src/modules/assets/assets.service.ts
Expand Up @@ -214,7 +214,7 @@ export class AssetsService {
*/
async getOfferedAssets({
did = this._did,
}: GetOfferedAssetsOptions): Promise<Asset[]> {
}: GetOfferedAssetsOptions = {}): Promise<Asset[]> {
return this._cacheClient.getOfferedAssets(did);
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/assets/assets.types.ts
Expand Up @@ -57,7 +57,7 @@ export interface GetOwnedAssetsOptions {

export interface GetOfferedAssetsOptions {
/** DID of the user */
did: string;
did?: string;
}

export interface GetAssetByIdOptions {
Expand Down

0 comments on commit c9c6a87

Please sign in to comment.