Update pushers total
and id
This commit is contained in:
parent
6a9e252791
commit
88e93d0fec
@ -105,11 +105,15 @@ const resourceMap = {
|
|||||||
pushers: {
|
pushers: {
|
||||||
map: p => ({
|
map: p => ({
|
||||||
...p,
|
...p,
|
||||||
|
id: p.pushkey,
|
||||||
}),
|
}),
|
||||||
reference: id => ({
|
reference: id => ({
|
||||||
endpoint: `/_synapse/admin/v1/users/${id}/pushers`,
|
endpoint: `/_synapse/admin/v1/users/${id}/pushers`,
|
||||||
}),
|
}),
|
||||||
data: "pushers",
|
data: "pushers",
|
||||||
|
total: json => {
|
||||||
|
return json.total;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
servernotices: {
|
servernotices: {
|
||||||
map: n => ({ id: n.event_id }),
|
map: n => ({ id: n.event_id }),
|
||||||
|
Loading…
Reference in New Issue
Block a user