add get user by username search endpoint to integration api

This commit is contained in:
miloschwartz
2026-02-24 22:04:15 -08:00
parent c71f46ede5
commit 8ea6d9fa67
4 changed files with 145 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ import { fromError } from "zod-validation-error";
import { ActionsEnum, checkUserActionPermission } from "@server/auth/actions";
import { OpenAPITags, registry } from "@server/openApi";
async function queryUser(orgId: string, userId: string) {
export async function queryUser(orgId: string, userId: string) {
const [user] = await db
.select({
orgId: userOrgs.orgId,