(pgClient: Pool, plugin: Omit<Plugin, 'id'>)
| 60 | } |
| 61 | |
| 62 | export const createPlugin = async (pgClient: Pool, plugin: Omit<Plugin, 'id'>) => { |
| 63 | return await insertRow(pgClient, 'posthog_plugin', { |
| 64 | ...plugin, |
| 65 | config_schema: {}, |
| 66 | from_json: false, |
| 67 | from_web: false, |
| 68 | created_at: new Date().toISOString(), |
| 69 | updated_at: new Date().toISOString(), |
| 70 | is_preinstalled: false, |
| 71 | capabilities: {}, |
| 72 | }) |
| 73 | } |
| 74 | |
| 75 | export const createPluginConfig = async ( |
| 76 | pgClient: Pool, |
no test coverage detected
searching dependent graphs…