Add Field cid to /api/lists/:email

With this `cid` you are able to do further API calls like unsubscribing
the user from all mailing lists.
This commit is contained in:
sedrubal 2019-11-10 00:43:41 +01:00
parent 3a2d1512ab
commit 082901e4e7
No known key found for this signature in database
GPG key ID: B83D4C8CEB8ABFF6

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) {