Skip to content

Commit 362a498

Browse files
authored
Merge pull request #2 from doordash/stop-updating-device
dont set device last_notified_at
2 parents c8b3c18 + 0b65575 commit 362a498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios_notifications/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _write_message(self, notification, devices, chunk_size):
141141
raise e # Unexpected exception, raise it.
142142
self._disconnect()
143143
i = chunk.index(device)
144-
self.set_devices_last_notified_at(chunk[:i])
144+
# self.set_devices_last_notified_at(chunk[:i])
145145
# Start again from the next device.
146146
# We start from the next device since
147147
# if the device no longer accepts push notifications from your app
@@ -151,7 +151,7 @@ def _write_message(self, notification, devices, chunk_size):
151151

152152
self._disconnect()
153153

154-
self.set_devices_last_notified_at(chunk)
154+
# self.set_devices_last_notified_at(chunk)
155155

156156
if notification.pk or notification.persist:
157157
notification.last_sent_at = dt_now()

0 commit comments

Comments
 (0)