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 | |
| 1893 | 1893 | ||
| 1894 | 1894 | plus := me.createFeatureExpiresAt(user.ID, "plus") | |
| 1895 | 1895 | 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) | |
| 1897 | 1897 | _, err = tx.Exec(plusQuery, user.ID, plus, paymentHistoryId) | |
| 1898 | 1898 | if err != nil { | |
| 1899 | 1899 | return err |
+1,
-1
| ... | ... | @@ -54,7 +54,7 @@ func (m *PlusPage) header(ctx vxfw.DrawContext) vxfw.Surface { | |
| 54 | 54 | {Text: "• prose\n"}, | |
| 55 | 55 | {Text: " • blog analytics\n"}, | |
| 56 | 56 | {Text: "• irc bouncer\n"}, | |
| 57 | - | {Text: "• 10GB total storage\n"}, | |
| 57 | + | {Text: "• 5GB total storage\n"}, | |
| 58 | 58 | }) | |
| 59 | 59 | brd := NewBorder(intro) | |
| 60 | 60 | brd.Label = "pico+" |