Compare commits

..

No commits in common. "a346a849db9c6b0545dc26896d1e11487f328ca0" and "dbf10e6980e851665cce03973b9bb322d0811937" have entirely different histories.

View File

@ -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