fix: prisma import in extract user route in Cal AI (#11625)
This commit is contained in:
parent
4a81b59fc9
commit
e5b88bd0b0
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@calcom/ai",
|
"name": "@calcom/ai",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Cal.com Inc.",
|
"author": "Cal.com Inc.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
import prisma from "@calcom/prisma";
|
||||||
|
|
||||||
|
import type { UserList } from "../types/user";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Extracts usernames (@Example) and emails (hi@example.com) from a string
|
* Extracts usernames (@Example) and emails (hi@example.com) from a string
|
||||||
*/
|
*/
|
||||||
import type { UserList } from "../types/user";
|
|
||||||
|
|
||||||
export const extractUsers = async (text: string) => {
|
export const extractUsers = async (text: string) => {
|
||||||
const usernames = text.match(/(?<![a-zA-Z0-9_.])@[a-zA-Z0-9_]+/g)?.map((username) => username.slice(1));
|
const usernames = text.match(/(?<![a-zA-Z0-9_.])@[a-zA-Z0-9_]+/g)?.map((username) => username.slice(1));
|
||||||
const emails = text.match(/[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+/g);
|
const emails = text.match(/[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+/g);
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
},
|
},
|
||||||
"@calcom/ai#build": {
|
"@calcom/ai#build": {
|
||||||
"env": [
|
"env": [
|
||||||
|
"FRONTEND_URL",
|
||||||
"BACKEND_URL",
|
"BACKEND_URL",
|
||||||
"APP_ID",
|
"APP_ID",
|
||||||
"APP_URL",
|
"APP_URL",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user