Fixed bug deleting all schedules
This commit is contained in:
parent
9d45d87ef3
commit
0dcc1e1fd9
1 changed files with 4 additions and 0 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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue