diff options
author | jessib <jessib@riseup.net> | 2013-12-30 16:22:38 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-12-30 16:22:38 -0800 |
commit | 4dae5eaa1bdb211d9d3ff29d5a9e9a86424e9748 (patch) | |
tree | a24c9e490a66ff9144386b8bd4ed2bb7a62ec197 /users/app/designs | |
parent | 396165d867f2009be1b1071d3c001009adf628ee (diff) |
Fixes to initial go at job to send one month warnings.
Diffstat (limited to 'users/app/designs')
-rw-r--r-- | users/app/designs/user/by_created_at_and_one_month_warning_not_sent.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/app/designs/user/by_created_at_and_one_month_warning_not_sent.js b/users/app/designs/user/by_created_at_and_one_month_warning_not_sent.js new file mode 100644 index 0000000..53a95de --- /dev/null +++ b/users/app/designs/user/by_created_at_and_one_month_warning_not_sent.js @@ -0,0 +1,5 @@ +function (doc) { + if ((doc['type'] == 'User') && (doc['created_at'] != null) && (doc['one_month_warning_sent'] == null)) { + emit(doc['created_at'], 1); + } +} |