Commit 297d1ce
committed
feat(db): add banned column to user table for blocking users
- Add banned boolean column to user schema (default false)
- Update getUserInfoFromApiKey to support banned field
- Refactor chat completions to check banned from DB instead of hardcoded list
- Update type definitions and test fixtures1 parent ad2bbe4 commit 297d1ce
File tree
13 files changed
+2648
-17
lines changed- common/src
- testing/fixtures
- types/contracts
- evals/impl
- packages/internal/src/db
- migrations
- meta
- sdk/src/__tests__
- web/src
- app/api/v1
- chat/completions
- __tests__
- me
- __tests__
- db
13 files changed
+2648
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments