Compare commits
No commits in common. "a346a849db9c6b0545dc26896d1e11487f328ca0" and "dbf10e6980e851665cce03973b9bb322d0811937" have entirely different histories.
a346a849db
...
dbf10e6980
5
main.go
5
main.go
@ -16,8 +16,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
c = sn.GetClient()
|
c = sn.GetClient()
|
||||||
// TODO: fetch our id from SN API
|
// TODO: fetch our id from SN API
|
||||||
// prod: 25176 | local: 21858
|
meId = 21858
|
||||||
meId = 25176
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -239,7 +238,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", comment.Id, err)
|
return nil, fmt.Errorf("failed to insert item %d into db: %v\n", err, comment.Id)
|
||||||
}
|
}
|
||||||
|
|
||||||
return comment, nil
|
return comment, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user