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:
parent
3a2d1512ab
commit
082901e4e7
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