Commit 156d6bf

Eric Bower  ·  2026-09-27 11:11:59 -0400 EDT
parent 5efb0d3
refactor(plus): 10GB -> 5GB

We only have a single user that's using more than 5GB so we are scoping the
allottment based on real-world usage.  This will also help us maintain healthy
services by clipping whale activity and preventing using pgs as a generic obj
storage system.
2 files changed,  +2, -2
+1, -1
......@@ -1893,7 +1893,7 @@ func (me *PsqlDB) AddPicoPlusUser(username, email, paymentType, txId string) err
18931893
18941894 plus := me.createFeatureExpiresAt(user.ID, "plus")
18951895 plusQuery := fmt.Sprintf(`INSERT INTO feature_flags (user_id, name, data, expires_at, payment_history_id)
1896- VALUES ($1, 'plus', '{"storage_max":10000000000, "file_max":100000000, "email": "%s"}'::jsonb, $2, $3);`, email)
1896+ VALUES ($1, 'plus', '{"storage_max":5000000000, "file_max":100000000, "email": "%s"}'::jsonb, $2, $3);`, email)
18971897 _, err = tx.Exec(plusQuery, user.ID, plus, paymentHistoryId)
18981898 if err != nil {
18991899 return err
+1, -1
......@@ -54,7 +54,7 @@ func (m *PlusPage) header(ctx vxfw.DrawContext) vxfw.Surface {
5454 {Text: "• prose\n"},
5555 {Text: " • blog analytics\n"},
5656 {Text: "• irc bouncer\n"},
57- {Text: "• 10GB total storage\n"},
57+ {Text: "• 5GB total storage\n"},
5858 })
5959 brd := NewBorder(intro)
6060 brd.Label = "pico+"