initial value of 1 for page
This commit is contained in:
parent
d02085abea
commit
552e625e5f
1 changed files with 1 additions and 1 deletions
|
|
@ -1302,7 +1302,7 @@ const createPost = async (tags, title, content) => {
|
||||||
.get(Key.PAGES)
|
.get(Key.PAGES)
|
||||||
.get(pageIdx)
|
.get(pageIdx)
|
||||||
.get(Key.COUNT)
|
.get(Key.COUNT)
|
||||||
.put(count + 1, ack => {
|
.put(shouldBeNewPage ? 1 : count + 1, ack => {
|
||||||
if (ack.err) {
|
if (ack.err) {
|
||||||
throw new Error(ack.err)
|
throw new Error(ack.err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue