Compare commits
2 Commits
dbf10e6980
...
a346a849db
Author | SHA1 | Date |
---|---|---|
ekzyis | a346a849db | |
ekzyis | 506cb7f6f1 |
5
main.go
5
main.go
|
@ -16,7 +16,8 @@ import (
|
||||||
var (
|
var (
|
||||||
c = sn.GetClient()
|
c = sn.GetClient()
|
||||||
// TODO: fetch our id from SN API
|
// TODO: fetch our id from SN API
|
||||||
meId = 21858
|
// prod: 25176 | local: 21858
|
||||||
|
meId = 25176
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -238,7 +239,7 @@ func createComment(parentId int, text string) (*sn.Item, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = db.InsertItem(comment); err != nil {
|
if err = db.InsertItem(comment); err != nil {
|
||||||
return nil, fmt.Errorf("failed to insert item %d into db: %v\n", err, comment.Id)
|
return nil, fmt.Errorf("failed to insert item %d into db: %v\n", comment.Id, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return comment, nil
|
return comment, nil
|
||||||
|
|
Loading…
Reference in New Issue