Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app_push
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_server
app_push
Commits
36e5806e
Commit
36e5806e
authored
Feb 28, 2020
by
yuzixun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add with indifferent access
parent
540a25dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
app/models/notification_statistic.rb
+5
-1
No files found.
app/models/notification_statistic.rb
View file @
36e5806e
...
...
@@ -11,11 +11,15 @@ class NotificationStatistic < ApplicationRecord
enum
app_type:
%i[ik_duli lx_duli lx_yun aike_yun]
def
self
.
create_by_params
(
igetui_opts
,
message
,
device_ids_opts
,
app_type
)
igetui_opts
=
igetui_opts
.
with_indifferent_access
message
=
message
.
with_indifferent_access
device_ids_opts
=
device_ids_opts
.
with_indifferent_access
device_ids_opts
.
each
do
|
platform
,
client_ids
|
client_ids
.
each
do
|
client_id
|
NotificationStatistic
.
create
(
organization_id:
igetui_opts
[
:organization_id
],
user_id:
igetui_opts
[
:user_id
],
user_id:
message
[
:user_id
],
notification_id:
message
[
:id
],
client_id:
client_id
,
platform:
platform
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment