(pgClient: Pool, teamId: number, email: string)
| 217 | } |
| 218 | |
| 219 | export const createUser = async (pgClient: Pool, teamId: number, email: string) => { |
| 220 | return await insertRow(pgClient, 'posthog_user', { |
| 221 | password: 'abc', |
| 222 | email, |
| 223 | first_name: '', |
| 224 | last_name: '', |
| 225 | email_opt_in: false, |
| 226 | distinct_id: email, |
| 227 | is_staff: false, |
| 228 | is_active: true, |
| 229 | date_joined: new Date().toISOString(), |
| 230 | events_column_config: '{}', |
| 231 | uuid: new UUIDT().toString(), |
| 232 | }) |
| 233 | } |
| 234 | |
| 235 | export const getPropertyDefinitions = async (pgClient: Pool, teamId: number) => { |
| 236 | const { rows } = await pgClient.query(`SELECT * FROM posthog_propertydefinition WHERE team_id = $1`, [teamId]) |
no test coverage detected
searching dependent graphs…