-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/8 crud group table #18
Conversation
package.json
Outdated
@@ -26,6 +26,7 @@ | |||
}, | |||
"dependencies": { | |||
"@hono/zod-openapi": "^0.17.0", | |||
"@node-rs/argon2": "^2.0.0", |
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.
This dependency is no more required and was removed in a previous MR, please take the latest pull from main.
src/modules/group/group.handler.ts
Outdated
} | ||
|
||
let group: TSelectGroupSchema | null = null; | ||
group = await createGroupRepository(payload); |
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.
You could directly do const group = await createGroupRepository(payload);
src/modules/group/group.handler.ts
Outdated
} | ||
|
||
let deletedGroupId: string | null = null; | ||
deletedGroupId = await deleteGroupRepository(params.id); |
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.
Same previous comment applies.
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.
Please look at the suggested changes
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.
We will implement activity log later, for now change the logger to error in 1 place.
src/modules/group/group.handler.ts
Outdated
const group: TSelectGroupSchema | null = await createGroupRepository(payload); | ||
|
||
if (!group) { | ||
logger.debug("Failed to create group"); |
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.
This should be an error log, logger.error()
|
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.
Good work
No description provided.