documenso/packages/lib/server-only/user
Lucas Smith 9f680c7a61
perf: set global prisma transaction timeouts and reduce transaction scope (#2607)
Configure default transaction options (5s maxWait, 10s timeout) on the
PrismaClient instead of per-transaction overrides. Move side effects
like email sending, webhook triggers, and job dispatches out of
$transaction blocks to avoid holding database connections open during
network I/O.

Also extracts the direct template email into a background job and fixes
a bug where prisma was used instead of tx inside a transaction.
2026-03-13 14:51:53 +11:00
..
service-accounts fix: use instance-specific emails for service accounts (#2502) 2026-02-16 11:52:19 +11:00
create-user.ts feat: add organisations (#1820) 2025-06-10 11:49:52 +10:00
delete-user.ts feat: unlink documents from deleted organization (#2006) 2025-12-15 12:17:13 +11:00
disable-user.ts fix: refactor prisma relations (#1581) 2025-01-13 13:41:53 +11:00
enable-user.ts feat: admin ui for disabling users (#1547) 2024-12-30 14:45:33 +11:00
find-user-security-audit-logs.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
forgot-password.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
get-all-users.ts feat: add envelopes (#2025) 2025-10-14 21:56:36 +11:00
get-monthly-completed-document.ts fix: query envelope table for openpage stats (#2086) 2025-10-21 12:43:57 +00:00
get-most-recent-email-verification-token.ts feat: add organisation sso portal (#1946) 2025-09-09 17:14:07 +10:00
get-reset-token-validity.ts fix: update token validity check 2023-11-06 13:01:13 +11:00
get-signer-conversion.ts feat: add user conversion count to admin panel (#1150) 2024-07-05 14:02:22 +10:00
get-user-by-email.ts chore: refactor code 2024-02-13 07:50:22 +02:00
get-user-by-id.ts chore: refactor routes (#1992) 2025-08-25 21:00:35 +10:00
get-user-by-reset-token.ts fix: use instance-specific emails for service accounts (#2502) 2026-02-16 11:52:19 +11:00
get-user-monthly-growth.ts fix: re-add removed types 2024-05-29 20:53:50 +10:00
reset-password.ts perf: set global prisma transaction timeouts and reduce transaction scope (#2607) 2026-03-13 14:51:53 +11:00
send-confirmation-token.ts feat: add organisation sso portal (#1946) 2025-09-09 17:14:07 +10:00
submit-support-ticket.ts feat: create plain customer (#2442) 2026-02-09 11:24:45 +11:00
update-password.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
update-profile.ts chore: refactor routes (#1992) 2025-08-25 21:00:35 +10:00
verify-email.ts feat: add organisation sso portal (#1946) 2025-09-09 17:14:07 +10:00