-
Notifications
You must be signed in to change notification settings - Fork 10
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
AH-436: update library #39
base: master
Are you sure you want to change the base?
Conversation
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.
lgtm
fix: repair lint
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.
lgtm
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.
looks good
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.
There is unaddressed comments, make sure to unhide all comments on the Conversation tab
@@ -144,7 +145,7 @@ export class MongoRepository<DOC, DTO = DOC> { | |||
const eventResult = await this.invokeEvents(PRE_KEY, [RepoOperation.save, RepoOperation.create], document); | |||
const res = await collection.insertOne(eventResult); | |||
|
|||
let newDocument = this.toggleId(res.ops[0], false); | |||
let newDocument = this.toggleId({ id: res.insertedId }, false); |
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 needs to be the whole document, not just the 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.
This is unresolved
@jeanmurillo95 there appear to still be several unresolved comments from the last review. |
@MatthewEppelsheimer @DanStory Can you please look at this PR? |
} | ||
let ourCollection; | ||
try { | ||
ourCollection = await db.collection(this.options.name); |
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 is missing { strict: true }
so it doesn't create the collection out right
Surf-shop Change Request
Change Comments
I updated the mongodb library, I also changed some methods and test cases.
Solution description
I updated the mongodb package, I reduced the complexity in some functions, repair some test cases and lint errors.
Linting & unit tests ev
idence
Checklist
PR is ready for code review and approval when each box is checked.
All steps are required, when applicable.
Strikeoutformatting indicates a step is not applicable to this change set.