mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 21:34:38 +03:00
webadmin: add single-line form for looking up a cid for a received id
This commit is contained in:
@ -1535,6 +1535,15 @@ export class Client {
|
||||
const params: any[] = [id, until]
|
||||
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as void
|
||||
}
|
||||
|
||||
// LookupCid turns an ID from a Received header into a cid as used in logging.
|
||||
async LookupCid(recvID: string): Promise<string> {
|
||||
const fn: string = "LookupCid"
|
||||
const paramTypes: string[][] = [["string"]]
|
||||
const returnTypes: string[][] = [["string"]]
|
||||
const params: any[] = [recvID]
|
||||
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as string
|
||||
}
|
||||
}
|
||||
|
||||
export const defaultBaseURL = (function() {
|
||||
|
Reference in New Issue
Block a user