part1
This commit is contained in:
@@ -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]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user