This commit is contained in:
seb
2026-08-07 05:21:56 +02:00
parent 70e0a9ddc4
commit 396389457f
22 changed files with 225 additions and 242 deletions

View File

@@ -9,8 +9,7 @@ This document is auto-generated from the JSDoc comments in `src/store` by runnin
Adds a company user linking a company to a Google auth account.
```js
const fn = add(pool);
const id = await fn(1, 42);
const id = await store.companyuser.add(1, 42);
// => 7
```
@@ -21,8 +20,7 @@ const id = await fn(1, 42);
Deletes a company user link by its id.
```js
const fn = del(pool);
await fn(7);
await store.companyuser.delete(7);
```
## `companyuser.getByEmail`
@@ -32,7 +30,6 @@ await fn(7);
Returns the company user ids associated with the given email address.
```js
const fn = getByEmail(pool);
const ids = await fn('user@example.com');
const ids = await store.companyuser.getByEmail('user@example.com');
// => [1, 2, 3]
```