-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fin de la session 1 #1
base: session-1-v3
Are you sure you want to change the base?
Conversation
import { success } from '@libs/response'; | ||
|
||
export const main: APIGatewayProxyHandler = async event => { | ||
console.log(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tu peux retirer le console.log
|
||
export const main: APIGatewayProxyHandler = async (event) => { | ||
/* | ||
La fonction doit générer 1 virus si un id est passé en query param |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
de base les commentaires, c'est pas ouf, mieux vaut les retirer.
Si le code a besoin de commentaires, c'est qu'il n'est pas assez découpé ou que le nom des variables n'est pas assez clair :)
La fonction doit générer 1 virus si un id est passé en query param | ||
Sinon elle en génère 4 | ||
*/ | ||
let viruses = [{}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initialise le seulement avec une liste vide non ?
et type ton tableau, ex: let viruses: Virus[] = [] où Virus est un type {id: string}
|
||
useAsync(async (id = 'TEST') => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
faudra qu'on reparle ensemble en live de tout ça :) j'ai besoin d'un peu de contexte
No description provided.