]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/account/account.service.ts
Handle account name in client url
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / account / account.service.ts
index 20e52d946296a020ab4ac3e0ec0dd445251492a0..6b261cf532083c976ac337b0667903c3e3055390 100644 (file)
@@ -18,7 +18,7 @@ export class AccountService {
     private restExtractor: RestExtractor
   ) {}
 
-  getAccount (id: number): Observable<Account> {
+  getAccount (id: number | string): Observable<Account> {
     return this.authHttp.get<ServerAccount>(AccountService.BASE_ACCOUNT_URL + id)
                .pipe(
                  map(accountHash => new Account(accountHash)),