add "enabled" to returned alias
This commit is contained in:
parent
c90a4899d2
commit
1241199e23
|
@ -758,7 +758,8 @@ If success, 200 with the list of aliases, for example:
|
||||||
"id": 4,
|
"id": 4,
|
||||||
"nb_block": 0,
|
"nb_block": 0,
|
||||||
"nb_forward": 0,
|
"nb_forward": 0,
|
||||||
"nb_reply": 0
|
"nb_reply": 0,
|
||||||
|
"enabled": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"creation_date": "2020-02-04 16:23:02+00:00",
|
"creation_date": "2020-02-04 16:23:02+00:00",
|
||||||
|
@ -767,7 +768,8 @@ If success, 200 with the list of aliases, for example:
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"nb_block": 0,
|
"nb_block": 0,
|
||||||
"nb_forward": 0,
|
"nb_forward": 0,
|
||||||
"nb_reply": 0
|
"nb_reply": 0,
|
||||||
|
"enabled": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ def get_aliases():
|
||||||
"nb_forward": alias.nb_forward,
|
"nb_forward": alias.nb_forward,
|
||||||
"nb_block": alias.nb_blocked,
|
"nb_block": alias.nb_blocked,
|
||||||
"nb_reply": alias.nb_reply,
|
"nb_reply": alias.nb_reply,
|
||||||
|
"enabled": alias.gen_email.enabled,
|
||||||
}
|
}
|
||||||
for alias in aliases
|
for alias in aliases
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue