- commit
- 5ec5910
- parent
- 48e24c2
- author
- Eric Bower
- date
- 2026-04-16 19:48:14 -0400 EDT
feat(pgs): 100mb max file size
2 files changed,
+3,
-3
+1,
-1
1@@ -1369,7 +1369,7 @@ func (me *PsqlDB) AddPicoPlusUser(username, email, paymentType, txId string) err
2
3 plus := me.createFeatureExpiresAt(user.ID, "plus")
4 plusQuery := fmt.Sprintf(`INSERT INTO feature_flags (user_id, name, data, expires_at, payment_history_id)
5- VALUES ($1, 'plus', '{"storage_max":10000000000, "file_max":250000000, "email": "%s"}'::jsonb, $2, $3);`, email)
6+ VALUES ($1, 'plus', '{"storage_max":10000000000, "file_max":100000000, "email": "%s"}'::jsonb, $2, $3);`, email)
7 _, err = tx.Exec(plusQuery, user.ID, plus, paymentHistoryId)
8 if err != nil {
9 return err
+2,
-2
1@@ -1448,8 +1448,8 @@ func TestFeatureFlagData_JSONBRoundtrip(t *testing.T) {
2 if feature.Data.StorageMax != 10000000000 {
3 t.Errorf("expected StorageMax 10000000000, got %d", feature.Data.StorageMax)
4 }
5- if feature.Data.FileMax != 250000000 {
6- t.Errorf("expected FileMax 250000000, got %d", feature.Data.FileMax)
7+ if feature.Data.FileMax != 100000000 {
8+ t.Errorf("expected FileMax 100000000, got %d", feature.Data.FileMax)
9 }
10 }
11