diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-08 21:14:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-08 21:14:31 +0300 |
commit | bb0d99269b1bee11939e6a3ddfcefed8c6fd4874 (patch) | |
tree | 58f5d3f64251e1847a1bfb77d76ead2abb16c899 /app/services/users | |
parent | f1ce233e6ab6535afef76f10528e104672426710 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/users')
-rw-r--r-- | app/services/users/in_product_marketing_email_records.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app/services/users/in_product_marketing_email_records.rb b/app/services/users/in_product_marketing_email_records.rb deleted file mode 100644 index fcb252536b3..00000000000 --- a/app/services/users/in_product_marketing_email_records.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -module Users - class InProductMarketingEmailRecords - attr_reader :records - - def initialize - @records = [] - end - - def save! - Users::InProductMarketingEmail.bulk_insert!(@records) - @records = [] - end - - def add(user, track: nil, series: nil) - @records << Users::InProductMarketingEmail.new( - user: user, - track: track, - series: series, - created_at: Time.zone.now, - updated_at: Time.zone.now - ) - end - end -end |