Skip to content

Commit d535736

Browse files
committed
Deploy website
Deploy website version based on fd5aa5fa34fad986d89ac045eda37fea7d80c10c
1 parent fbeaa42 commit d535736

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/6.0.0/running-imperatively.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2><a class="anchor" aria-hidden="true" id="example-validating-with-a-condition
8989
<pre><code class="hljs css language-js">app.post(<span class="hljs-string">'/update-settings'</span>, [
9090
body(<span class="hljs-string">'email'</span>).isEmail(),
9191
body(<span class="hljs-string">'password'</span>).optional().isLength({ <span class="hljs-attr">min</span>: <span class="hljs-number">6</span> })
92-
], (req, res, next) =&gt; {
92+
], <span class="hljs-keyword">async</span> (req, res, next) =&gt; {
9393
<span class="hljs-comment">// if a password has been provided, then a confirmation must also be provided.</span>
9494
<span class="hljs-keyword">if</span> (req.body.password) {
9595
<span class="hljs-keyword">await</span> body(<span class="hljs-string">'passwordConfirmation'</span>)

docs/next/running-imperatively.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2><a class="anchor" aria-hidden="true" id="example-validating-with-a-condition
8989
<pre><code class="hljs css language-js">app.post(<span class="hljs-string">'/update-settings'</span>, [
9090
body(<span class="hljs-string">'email'</span>).isEmail(),
9191
body(<span class="hljs-string">'password'</span>).optional().isLength({ <span class="hljs-attr">min</span>: <span class="hljs-number">6</span> })
92-
], (req, res, next) =&gt; {
92+
], <span class="hljs-keyword">async</span> (req, res, next) =&gt; {
9393
<span class="hljs-comment">// if a password has been provided, then a confirmation must also be provided.</span>
9494
<span class="hljs-keyword">if</span> (req.body.password) {
9595
<span class="hljs-keyword">await</span> body(<span class="hljs-string">'passwordConfirmation'</span>)

docs/running-imperatively.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2><a class="anchor" aria-hidden="true" id="example-validating-with-a-condition
8989
<pre><code class="hljs css language-js">app.post(<span class="hljs-string">'/update-settings'</span>, [
9090
body(<span class="hljs-string">'email'</span>).isEmail(),
9191
body(<span class="hljs-string">'password'</span>).optional().isLength({ <span class="hljs-attr">min</span>: <span class="hljs-number">6</span> })
92-
], (req, res, next) =&gt; {
92+
], <span class="hljs-keyword">async</span> (req, res, next) =&gt; {
9393
<span class="hljs-comment">// if a password has been provided, then a confirmation must also be provided.</span>
9494
<span class="hljs-keyword">if</span> (req.body.password) {
9595
<span class="hljs-keyword">await</span> body(<span class="hljs-string">'passwordConfirmation'</span>)

0 commit comments

Comments
 (0)