We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae9cbe commit 69b2e55Copy full SHA for 69b2e55
src/services/reminders/reminders.ts
@@ -1,21 +1,7 @@
1
import { sub } from 'date-fns'
2
3
-import { generateTempId } from '@workduck-io/mex-utils'
4
-
5
import { Reminder, ReminderGroup } from '../../types/reminders'
6
7
-export const insertId = (content: any[]) => {
8
- if (content.length === 0) {
9
- return content
10
- }
11
- return content.map((item) => {
12
- if (item.children) item.children = insertId(item.children)
13
- return {
14
- ...item,
15
- id: generateTempId()
16
17
- })
18
-}
+import {insertId} from '@utils/lib/content.main'
19
20
/*
21
* Only sets up reminder for the next 24 hours
0 commit comments