(
userId: string,
{ includeInactive = false }: { includeInactive?: boolean } = {},
)
| 180 | } |
| 181 | |
| 182 | export async function getUserPlugins( |
| 183 | userId: string, |
| 184 | { includeInactive = false }: { includeInactive?: boolean } = {}, |
| 185 | ) { |
| 186 | // Owner views include inactive plugins and must reflect publish/delete |
| 187 | // actions immediately, so only the public variant is cached. |
| 188 | if (includeInactive) return fetchUserPlugins(userId, { includeInactive }); |
| 189 | return getPublicUserPlugins(userId); |
| 190 | } |
| 191 | |
| 192 | export async function getCompanies() { |
| 193 | "use cache"; |
no test coverage detected