Skip to content

Commit b919880

Browse files
committed
revert to original internalId
1 parent d97a719 commit b919880

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

packages/backend/src/apps/scheduler/common/get-internal-id.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/backend/src/apps/scheduler/triggers/every-day/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
} from '../../common/constants'
99
import cronTimes from '../../common/cron-times'
1010
import getDateTimeObjectRepresentation from '../../common/get-date-time-object'
11-
import getInternalId from '../../common/get-internal-id'
1211
import getNextCronDateTime from '../../common/get-next-cron-date-time'
1312
import getDataOutMetadata from '../get-data-out-metadata'
1413

@@ -69,7 +68,7 @@ const trigger: IRawTrigger = {
6968
const dataItem = {
7069
raw: dateTimeObjectRepresentation,
7170
meta: {
72-
internalId: getInternalId(dateTime),
71+
internalId: dateTime.toMillis().toString(),
7372
},
7473
}
7574

packages/backend/src/apps/scheduler/triggers/every-hour/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { DateTime } from 'luxon'
44

55
import cronTimes from '../../common/cron-times'
66
import getDateTimeObjectRepresentation from '../../common/get-date-time-object'
7-
import getInternalId from '../../common/get-internal-id'
87
import getNextCronDateTime from '../../common/get-next-cron-date-time'
98
import getDataOutMetadata from '../get-data-out-metadata'
109

@@ -54,7 +53,7 @@ const trigger: IRawTrigger = {
5453
const dataItem = {
5554
raw: dateTimeObjectRepresentation,
5655
meta: {
57-
internalId: getInternalId(dateTime),
56+
internalId: dateTime.toMillis().toString(),
5857
},
5958
}
6059

packages/backend/src/apps/scheduler/triggers/every-month/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
} from '../../common/constants'
99
import cronTimes from '../../common/cron-times'
1010
import getDateTimeObjectRepresentation from '../../common/get-date-time-object'
11-
import getInternalId from '../../common/get-internal-id'
1211
import getNextCronDateTime from '../../common/get-next-cron-date-time'
1312
import getDataOutMetadata from '../get-data-out-metadata'
1413

@@ -189,7 +188,7 @@ const trigger: IRawTrigger = {
189188
const dataItem = {
190189
raw: dateTimeObjectRepresentation,
191190
meta: {
192-
internalId: getInternalId(dateTime),
191+
internalId: dateTime.toMillis().toString(),
193192
},
194193
}
195194

packages/backend/src/apps/scheduler/triggers/every-week/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
} from '../../common/constants'
99
import cronTimes from '../../common/cron-times'
1010
import getDateTimeObjectRepresentation from '../../common/get-date-time-object'
11-
import getInternalId from '../../common/get-internal-id'
1211
import getNextCronDateTime from '../../common/get-next-cron-date-time'
1312
import getDataOutMetadata from '../get-data-out-metadata'
1413

@@ -93,7 +92,7 @@ const trigger: IRawTrigger = {
9392
const dataItem = {
9493
raw: dateTimeObjectRepresentation,
9594
meta: {
96-
internalId: getInternalId(dateTime),
95+
internalId: dateTime.toMillis().toString(),
9796
},
9897
}
9998

0 commit comments

Comments
 (0)