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