Skip to content

Commit

Permalink
Send Success ack after deleting cast
Browse files Browse the repository at this point in the history
Send Success ack after deleting cast
  • Loading branch information
Shreyaschorge authored Oct 31, 2023
2 parents ffad003 + 2fddbe5 commit 755674f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/neynar-api/neynar-v2-api/neynar-api-v2-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class NeynarV2APIClient {
public async deleteCast(
signerUuid: string,
castOrCastHash: Cast | string
): Promise<void> {
): Promise<OperationResponse> {
let castHash: string;
if (typeof castOrCastHash === "string") {
castHash = castOrCastHash;
Expand All @@ -204,6 +204,9 @@ export class NeynarV2APIClient {
signer_uuid: signerUuid,
target_hash: castHash,
};
await this.apis.cast.deleteCast({ deleteCastReqBody: body });
const response = await this.apis.cast.deleteCast({
deleteCastReqBody: body,
});
return response.data;
}
}

0 comments on commit 755674f

Please sign in to comment.