updated db for priority
This commit is contained in:
parent
43bd75fe78
commit
879da86284
2
db/db.go
2
db/db.go
|
@ -210,7 +210,7 @@ func DeleteTask(id int) error {
|
||||||
|
|
||||||
//AddTask is used to add the task in the database
|
//AddTask is used to add the task in the database
|
||||||
func AddTask(title, content string, taskPriority int) error {
|
func AddTask(title, content string, taskPriority int) error {
|
||||||
restoreSQL, err := database.Prepare("insert into task(title, content, priority, created_date, last_modified_at) values(?,?,datetime(), datetime())")
|
restoreSQL, err := database.Prepare("insert into task(title, content, priority, created_date, last_modified_at) values(?,?,?,datetime(), datetime())")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue