Skip to content

Conversation

@vlnach
Copy link

@vlnach vlnach commented Sep 17, 2025

No description provided.

@vlnach vlnach changed the title Vlad-db-week4 Vlad-week4-DB Sep 17, 2025
@yunchen4 yunchen4 self-assigned this Sep 19, 2025
Copy link

@yunchen4 yunchen4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only a small suggestion for code readability.

try {
const col = client.db(DB).collection(COLL);

const [a, b] = from < to ? [from, to] : [to, from];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: use better names for a and b. It is hard to understand what they are for in the first sight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants