Skip to content

Commit 69b2e55

Browse files
author
Mukul Mehta
committed
Use insertId from content.main
1 parent bae9cbe commit 69b2e55

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/services/reminders/reminders.ts

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
import { sub } from 'date-fns'
22

3-
import { generateTempId } from '@workduck-io/mex-utils'
4-
53
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-
}
4+
import {insertId} from '@utils/lib/content.main'
195

206
/*
217
* Only sets up reminder for the next 24 hours

0 commit comments

Comments
 (0)