summaryrefslogtreecommitdiff
path: root/users/app/designs/user
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-12-30 16:22:38 -0800
committerjessib <jessib@riseup.net>2013-12-30 16:22:38 -0800
commit4dae5eaa1bdb211d9d3ff29d5a9e9a86424e9748 (patch)
treea24c9e490a66ff9144386b8bd4ed2bb7a62ec197 /users/app/designs/user
parent396165d867f2009be1b1071d3c001009adf628ee (diff)
Fixes to initial go at job to send one month warnings.
Diffstat (limited to 'users/app/designs/user')
-rw-r--r--users/app/designs/user/by_created_at_and_one_month_warning_not_sent.js5
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);
+ }
+}