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:
Tomas Bures 2019-11-26 21:12:07 +01:00 committed by GitHub
commit ed2655b78e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
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 = [];
for (const list of lsts) {