Skip to content

Commit

Permalink
fix: cfg file mod time error
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Apr 10, 2024
1 parent e65affd commit 8821467
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions libs/zhi-siyuan-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-siyuan-api

## 2.21.0

### Minor Changes

- fix: cfg file mod time error

## 2.20.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-siyuan-api",
"version": "2.20.10",
"version": "2.21.0",
"type": "module",
"description": "a siyuan-note api including both kernel and client",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/src/lib/kernel/siyuanKernelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ class SiyuanKernelApi implements ISiyuanKernelApi {
const formData = new FormData()
formData.append("path", path)
formData.append("isDir", "false")
formData.append("modTime", Math.floor(Date.now() / 1000).toString())
formData.append("modTime", Date.now().toString())
formData.append("file", file)
return await this.siyuanRequestForm("/api/file/putFile", formData)
}
Expand Down

0 comments on commit 8821467

Please sign in to comment.