Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async get(id: number | string): Promise {
const request = new grpc.GetCampaignRequest()
request.setResourceName(this.buildResourceName(`${RESOURCE_URL_NAME}/${id}`))
const campaign = await this.serviceCall(SERVICE_GET_METHOD, request)
return campaign as Campaign
}