mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 17:06:28 +03:00
fix get_provider_info docs
This commit is contained in:
@@ -128,9 +128,7 @@ impl CommandApi {
|
||||
|
||||
/// Returns provider for the given domain.
|
||||
///
|
||||
/// This function looks up domain in offline database first. If not
|
||||
/// found, it queries MX record for the domain and looks up offline
|
||||
/// database for MX domains.
|
||||
/// This function looks up domain in offline database.
|
||||
///
|
||||
/// For compatibility, email address can be passed to this function
|
||||
/// instead of the domain.
|
||||
@@ -156,7 +154,7 @@ impl CommandApi {
|
||||
ctx.is_configured().await
|
||||
}
|
||||
|
||||
// Get system info for an account.
|
||||
/// Get system info for an account.
|
||||
async fn get_info(&self, account_id: u32) -> Result<BTreeMap<&'static str, String>> {
|
||||
let ctx = self.get_context(account_id).await?;
|
||||
ctx.get_info().await
|
||||
|
||||
@@ -76,9 +76,7 @@ export class RawClient {
|
||||
/**
|
||||
* Returns provider for the given domain.
|
||||
*
|
||||
* This function looks up domain in offline database first. If not
|
||||
* found, it queries MX record for the domain and looks up offline
|
||||
* database for MX domains.
|
||||
* This function looks up domain in offline database.
|
||||
*
|
||||
* For compatibility, email address can be passed to this function
|
||||
* instead of the domain.
|
||||
@@ -94,7 +92,9 @@ export class RawClient {
|
||||
return (this._transport.request('is_configured', [accountId] as RPC.Params)) as Promise<boolean>;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get system info for an account.
|
||||
*/
|
||||
public getInfo(accountId: T.U32): Promise<Record<string,string>> {
|
||||
return (this._transport.request('get_info', [accountId] as RPC.Params)) as Promise<Record<string,string>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user