Skip to content

Commit

Permalink
fix: cleanup local page
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcuva committed Jan 5, 2024
1 parent 9090451 commit 0457eef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ const readme = (
const getUser: GetUserFunction = async ({ byAPIKey, byEmail, manualAPIKey }) => {
if (!byAPIKey && !options.disableMetrics) {
console.error(
'Missing required definition for byAPIKey. Learn more here: https://docs.readme.com/main/docs/unified-snippet-docs#/getuserbyapikey',
'Missing required definition for byAPIKey. Learn more here: https://docs.readme.com/main/docs/unified-snippet-docs#getuserbyapikey',
);
return next();
}
if (!byEmail && !options.disableWebhook) {
console.error(
'Missing required definition for byEmail. Learn more here: https://docs.readme.com/main/docs/unified-snippet-docs#/getuserbyapikey',
'Missing required definition for byEmail. Learn more here: https://docs.readme.com/main/docs/unified-snippet-docs#getuserbyapikey',
);
return next();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/lib/setup-readme-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ ${metricsVerifiedHtml}
</ol>
<pre>
<div class="cm-s-neo"><span class="cm-variable">readme</span>(<span class="cm-keyword">async</span> (<span class="cm-def">req</span>) <span class="cm-operator">=&gt;</span> {
<span class="cm-keyword">const</span> <span class="cm-def">user</span> <span class="cm-operator">=</span> <span class="cm-variable">getUser</span>({ <span class="cm-property">email</span>: <span class="cm-variable-2">req</span>.<span class="cm-property">body</span>.<span class="cm-property">email</span>, <span class="cm-property">apiKey</span>: <span class="cm-variable-2">req</span>.<span class="cm-property">query</span>.<span class="cm-property">apiKey</span> });
<span class="cm-keyword">const</span> <span class="cm-def">user</span> <span class="cm-operator">=</span> <span class="cm-variable">getUser</span>({ <span class="cm-property">byEmail</span>: <span class="cm-variable">getUserByEmail</span>, <span class="cm-property">apiKey</span>: <span class="cm-variable">getUserByAPIKey</span> });
<span class="cm-keyword">return</span> {
<span class="cm-property">email</span>: <span class="cm-variable-2">user</span>.<span class="cm-property">email</span>,
Expand Down

0 comments on commit 0457eef

Please sign in to comment.