-
Notifications
You must be signed in to change notification settings - Fork 0
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
modified API to imageHash instead of hasImage #88
Conversation
Would you need to change Card.md as well? |
I believe I have done that? What change specifically do you refer to |
Oh apologies. |
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 have yet to update GET /api/image.
docs/api/Card.ts
Outdated
@@ -9,7 +9,7 @@ export interface Card { | |||
email: string; | |||
jobTitle: string; | |||
company: string; | |||
hasImage: boolean; | |||
imageHash?: string; |
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.
Use the Hashed type.
import { Hashed } from './Hashed';
imageHash?: string; | |
imageHash?: Hashed; |
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.
I thought Hashed specifically refers to password hash. Where as imageHash is just a fairly unique string associated with the image?
You mean image.md? image.md does not need to update because that endpoint actually does not get modified, except cache-control. |
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 to me.
I think there's only 3 places to change?