Compare commits

...

2 Commits

Author SHA1 Message Date
ekzyis a346a849db Use meId from prod 2024-10-16 03:16:41 +02:00
ekzyis 506cb7f6f1 Fix error message 2024-10-16 03:13:55 +02:00
1 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,8 @@ import (
var (
c = sn.GetClient()
// TODO: fetch our id from SN API
meId = 21858
// prod: 25176 | local: 21858
meId = 25176
)
func main() {
@ -238,7 +239,7 @@ func createComment(parentId int, text string) (*sn.Item, error) {
}
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