(ctx context.DnoteCtx)
| 48 | } |
| 49 | |
| 50 | func touchLastUpgrade(ctx context.DnoteCtx) error { |
| 51 | db := ctx.DB |
| 52 | |
| 53 | now := time.Now().Unix() |
| 54 | _, err := db.Exec("UPDATE system SET value = ? WHERE key = ?", now, consts.SystemLastUpgrade) |
| 55 | if err != nil { |
| 56 | return errors.Wrap(err, "updating last_upgrade") |
| 57 | } |
| 58 | |
| 59 | return nil |
| 60 | } |
| 61 | |
| 62 | func fetchLatestStableTag(gh *github.Client, page int) (string, error) { |
| 63 | params := github.ListOptions{ |