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

add: useGlobalDraftKey parameter #7

Merged
merged 1 commit into from
May 25, 2021
Merged

add: useGlobalDraftKey parameter #7

merged 1 commit into from
May 25, 2021

Conversation

shibe97
Copy link
Member

@shibe97 shibe97 commented May 24, 2021

#6

@shibe97 shibe97 requested a review from hiro08gh May 24, 2021 14:35
@@ -30,14 +30,14 @@ const createClient = ({ serviceDomain, apiKey, globalDraftKey }: ClientParams) =
/**
* Make request
*/
const makeRequest = async <T>({ endpoint, contentId, queries = {} }: MakeRequest): Promise<T> => {
const makeRequest = async <T>({ endpoint, contentId, queries = {}, useGlobalDraftKey = true }: MakeRequest): Promise<T> => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Default value set to true for backwards compatibility.

@hiro08gh
Copy link
Contributor

ありがとうございます!動作チェックして問題ありませんでした!LGTMです!

@hiro08gh hiro08gh merged commit 89a410b into main May 25, 2021
@hiro08gh hiro08gh deleted the issue/6 branch August 23, 2021 05:28
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