Skip to content

Commit

Permalink
chore(cli): Strict TS config
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed Aug 3, 2023
1 parent ba1c2a9 commit dddc0e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/cli/src/ceramic-daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,12 +719,13 @@ export class CeramicDaemon {

private async _parseAdminApiJWS(jws: string): Promise<AdminAPIJWSContents> {
const result = await this.ceramic.did!.verifyJWS(jws)
const payload: any = result.payload
return {
kid: result.kid,
code: result.payload.code,
requestPath: result.payload.requestPath,
models: result.payload.requestBody ? result.payload.requestBody.models : undefined,
modelData: result.payload.requestBody ? result.payload.requestBody.modelData : undefined,
code: payload.code,
requestPath: payload.requestPath,
models: payload.requestBody?.models,
modelData: payload.requestBody?.modelData,
}
}

Expand Down

0 comments on commit dddc0e9

Please sign in to comment.