Skip to content

Commit 16c8209

Browse files
authored
Added getAccountForSite to account service that returns an account entity (#525)
1 parent bd6fed6 commit 16c8209

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/account/account.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,10 @@ export class AccountService {
296296
return account;
297297
}
298298

299+
async getAccountForSite(site: Site): Promise<Account> {
300+
return this.accountRepository.getBySite(site);
301+
}
302+
299303
/**
300304
* Get the accounts that the provided account is following
301305
*

0 commit comments

Comments
 (0)