Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/utils/tools.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const { Notification: ApnsMessage } = require("@parse/node-apn");
const { Message: GcmMessage } = require("node-gcm");

const { DEFAULT_TTL, GCM_MAX_TTL } = require("../constants");
const { DEFAULT_TTL, GCM_MAX_TTL } = require('../constants');

Check failure on line 4 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (24.x)

Replace `'../constants'` with `"../constants"`

Check failure on line 4 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (22.x)

Replace `'../constants'` with `"../constants"`

Check failure on line 4 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (20.x)

Replace `'../constants'` with `"../constants"`
const { interruptionLevel } = require('@parse/node-apn/lib/notification/apsProperties');

Check failure on line 5 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (24.x)

Replace `'@parse/node-apn/lib/notification/apsProperties');⏎` with `"@parse/node-apn/lib/notification/apsProperties");`

Check failure on line 5 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (24.x)

'interruptionLevel' is assigned a value but never used

Check failure on line 5 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (22.x)

Replace `'@parse/node-apn/lib/notification/apsProperties');⏎` with `"@parse/node-apn/lib/notification/apsProperties");`

Check failure on line 5 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (22.x)

'interruptionLevel' is assigned a value but never used

Check failure on line 5 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (20.x)

Replace `'@parse/node-apn/lib/notification/apsProperties');⏎` with `"@parse/node-apn/lib/notification/apsProperties");`

Check failure on line 5 in src/utils/tools.js

View workflow job for this annotation

GitHub Actions / test (20.x)

'interruptionLevel' is assigned a value but never used


const ttlFromExpiry = (expiry) => {
const ttl = expiry - Math.floor(Date.now() / 1000);
Expand Down Expand Up @@ -169,6 +171,7 @@
mutableContent: data.mutableContent || 0,
threadId: data.threadId,
pushType: data.pushType,
interruptionLevel: data.interruptionLevel,
});

if (data.rawPayload) {
Expand Down
Loading