Update author resolving to new API response

http-api has been updated to return a new type of Author e.g.

```json
"author": {
  "peer": "hyyg555wwkkutaysg6yr67qnu5d5ji54iur3n5uzzszndh8dp7ofue",
  "identity": {
    "urn": "rad:git:hnrk81wcokr48mkm544kh74kc9fqz84d3rfcy",
    "name": "sebastinez",
    "ens": {
      "name": "sebastinez.radicle.eth"
    }
  }
}
```

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2022-06-29 15:45:06 +02:00
parent 638fecfc79
commit 5d34f77bc3
5 changed files with 20 additions and 12 deletions
+8 -4
View File
@@ -1,4 +1,5 @@
import { type Host, Request } from '@app/api';
import type { PeerId } from '@app/project';
export interface IIssue {
id: string;
@@ -26,10 +27,13 @@ export interface Comment {
}
export interface Author {
urn: string;
name?: string;
ens?: {
name: string;
peer: PeerId;
identity: {
urn: string;
name?: string;
ens?: {
name: string;
};
};
}