Merge pull request #773 from sedrubal/add-cid-to-get-lists-for-email-api-call
Add Field `cid` to `/api/lists/:email`
This commit is contained in:
commit
ed2655b78e
1 changed files with 1 additions and 1 deletions
|
@ -863,7 +863,7 @@ async function getListsWithEmail(context, email) {
|
||||||
// FIXME - this methods is rather suboptimal if there are many lists. It quite needs permission caching in shares.js
|
// FIXME - this methods is rather suboptimal if there are many lists. It quite needs permission caching in shares.js
|
||||||
|
|
||||||
return await knex.transaction(async tx => {
|
return await knex.transaction(async tx => {
|
||||||
const lsts = await tx('lists').select(['id', 'name']);
|
const lsts = await tx('lists').select(['id', 'cid', 'name']);
|
||||||
const result = [];
|
const result = [];
|
||||||
|
|
||||||
for (const list of lsts) {
|
for (const list of lsts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue