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
13691369
13701370 plus := me.createFeatureExpiresAt(user.ID, "plus")
13711371 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)
13731373 _, err = tx.Exec(plusQuery, user.ID, plus, paymentHistoryId)
13741374 if err != nil {
13751375 return err
+2, -2
......@@ -1448,8 +1448,8 @@ func TestFeatureFlagData_JSONBRoundtrip(t *testing.T) {
14481448 if feature.Data.StorageMax != 10000000000 {
14491449 t.Errorf("expected StorageMax 10000000000, got %d", feature.Data.StorageMax)
14501450 }
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)
14531453 }
14541454 }
14551455