Skip to content

Instantly share code, notes, and snippets.

View AustonianAI's full-sized avatar

Austin Johnson AustonianAI

View GitHub Profile

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@AustonianAI
AustonianAI / nestjs-axios-request.ts
Created July 21, 2022 18:21
Boilerplate code to send an Axios request using NestJS
const response = await lastValueFrom(
this.httpService
.get(
requestUrl
configObject
)
.pipe(
map((response: AxiosResponse) => response.data),
retry(3),
catchError((error) => {
<iframe height='500px' width='100%' frameborder='0' allowTransparency='true' scrolling='auto' src='https://creator.zohopublic.com/austin437/hatchery-planning-brain/report-embed/Availability_Table/C4ghKyPU1uHURdMG7kt37YKb8DHzYZVX2nsC4Dp929CN5VABFxO7n9qrnfUygnXmkfEaqG8SJ4CJV8vAVWaaRmapU7OhK4ddrNtf'></iframe>