-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(lamda): add admin function for NOSOs #990
base: main
Are you sure you want to change the base?
Conversation
Coverage Report
File Coverage
|
// check if the package already exists; if it does shoudl not add new record | ||
if (currentPackage) { | ||
return response({ | ||
statusCode: 404, |
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.
Doesn't 404 mean Not Found?
const parseEventBody = (body: unknown) => { | ||
return submitNOSOAdminSchema.parse(typeof body === "string" ? JSON.parse(body) : body); | ||
}; | ||
|
||
const { packageId, action } = parseEventBody(event.body); |
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.
Would it make sense to just call submitNOSOAdminSchema.parse
without abstracting it into a function?
Woops, didn't see the NOT READY badge. Ignore my comments 😅 |
🎫 Linked Ticket
OY2-31182
💬 Description / Notes
🛠 Changes
📸 Screenshots / Demo