Commit e396002
committed
refactor(data-access): move tag/saved-reply/custom-field logic onto repository pattern
Introduces dedicated tag and saved-reply repositories under
packages/database/src/repositories, hashes workspace tokens
(new tokenHash column + index), and centralizes the owner
quota/trial gate into authorize-workspace-access.ts shared by
server actions and oRPC auth. Relocates the affected business-
logic tests from apps/builder/__tests__ into package-level
__tests__ per repository convention.1 parent 3278c0e commit e396002
62 files changed
Lines changed: 43074 additions & 3007 deletions
File tree
- .agents/skills
- drizzle-database
- orpc-api
- public-api-tooling
- apps/builder
- __tests__
- src
- features
- contacts/actions
- __tests__
- custom-fields
- actions
- api
- flows/actions
- saved-replies
- actions
- queries
- tags
- actions
- __tests__
- api
- queries
- lib
- workspace
- middlewares
- routers
- packages
- business/src
- custom-field
- __tests__
- flow-version
- __tests__
- flow
- __tests__
- saved-reply
- __tests__
- tag
- __tests__
- workspace
- database
- __tests__
- drizzle
- 20260816085646_audit_log_where_and_index
- 20260817022325_add-dynamic-image
- 20260824034503_media_library
- 20260825130347_capi_enrichment_columns
- 20260828025915_create_workspace_token_hash
- src
- repositories
- saved-reply
- tag
- schema
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
213 | 254 | | |
214 | 255 | | |
215 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
This file was deleted.
0 commit comments