Compare commits
2 commits
9d45d87ef3
...
8039dfaf42
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8039dfaf42 | ||
|
|
0dcc1e1fd9 |
2 changed files with 5 additions and 1 deletions
4
node.go
4
node.go
|
|
@ -325,6 +325,10 @@ func CreateNode(userID, parentID int, name string) (node Node, err error) { // {
|
||||||
return
|
return
|
||||||
} // }}}
|
} // }}}
|
||||||
func UpdateNode(userID, nodeID, timeOffset int, content string, cryptoKeyID int, markdown bool) (err error) { // {{{
|
func UpdateNode(userID, nodeID, timeOffset int, content string, cryptoKeyID int, markdown bool) (err error) { // {{{
|
||||||
|
if nodeID == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var timezone string
|
var timezone string
|
||||||
row := service.Db.Conn.QueryRow(`SELECT timezone FROM _webservice.user WHERE id=$1`, userID)
|
row := service.Db.Conn.QueryRow(`SELECT timezone FROM _webservice.user WHERE id=$1`, userID)
|
||||||
err = row.Scan(&timezone)
|
err = row.Scan(&timezone)
|
||||||
|
|
|
||||||
2
version
2
version
|
|
@ -1 +1 @@
|
||||||
v27
|
v28
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue