Skip to content
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

Use constants for common strings #6

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Use constants for common strings #6

merged 3 commits into from
Jul 31, 2024

Conversation

mike182uk
Copy link
Member

In #5 we introduced constants to keep track of common strings. This PR updates the codebase to make use of these constants

src/user.ts Outdated
@@ -61,18 +66,6 @@ export async function getUserData(ctx: RequestContext<ContextData>, handle: stri
),
};

const dataToStore: PersonData = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed this as it wasn't being used

Copy link
Collaborator

Choose a reason for hiding this comment

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

:D This is actually a bug - we should be passing dataToStore on line 76 🙈

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in a32d935

Copy link
Collaborator

@allouis allouis left a comment

Choose a reason for hiding this comment

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

Looks good - but we wanna keep dataToStore (and actually use it!)

src/user.ts Outdated
@@ -61,18 +66,6 @@ export async function getUserData(ctx: RequestContext<ContextData>, handle: stri
),
};

const dataToStore: PersonData = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

:D This is actually a bug - we should be passing dataToStore on line 76 🙈

@mike182uk mike182uk merged commit 55dcc09 into main Jul 31, 2024
1 check passed
@mike182uk mike182uk deleted the refactor/use-constants branch July 31, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants