1
0
Эх сурвалжийг харах

Update email address export to take newsletter consent into account

Alan Lam 8 жил өмнө
parent
commit
e36925b14c

+ 2 - 1
controllers/users_export.php

@@ -10,7 +10,8 @@ switch($type) {
 		fputcsv($handle, ["first_name", "last_name", "email"]);
 
 		$users = User::query([
-			"email" => (new Constraint("IS_NOT_NULL"))
+			"email" => (new Constraint("IS_NOT_NULL")),
+			"newsletter_consent" => 1,
 		]);
 
 		foreach($users as $user) {