mirror of
https://github.com/YunoHost-Apps/flohmarkt_ynh.git
synced 2024-09-03 18:36:30 +02:00
dbb9891351
that sends an email to the admin of flohmarkt or the admin group of yunohost when the user database changes
11 lines
389 B
YAML
11 lines
389 B
YAML
name: "watch for changes in user database"
|
|
kind: "url"
|
|
url: "http://__APP__:__PASSWORD_COUCHDB_FLOHMARKT__@127.0.0.1:5984/flohmarkt/_find"
|
|
method: "POST"
|
|
data: '{"selector": { "role": "User", "name": { "$ne": "instance" }},
|
|
"fields": ["name","email","active"], "sort": [ "name" ]}'
|
|
headers:
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
filter:
|
|
- shellpipe: 'jq .docs'
|