Download spectrum/api/migrations/seed/default/usersDirectMessageThreads.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/seed/default/usersDirectMessageThreads.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/migrations/seed/default/usersDirectMessageThreads.js
-
curl -L -o usersDirectMessageThreads.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/seed/default/usersDirectMessageThreads.js
1.12 kB
| // @flow | |
| const constants = require('./constants'); | |
| const { DATE, BRIAN_ID, MAX_ID, BRYN_ID, PREVIOUS_MEMBER_USER_ID } = constants; | |
| module.exports = [ | |
| { | |
| id: '1', | |
| createdAt: new Date(DATE), | |
| userId: BRIAN_ID, | |
| threadId: 'dm-1', | |
| lastActive: new Date(DATE), | |
| lastSeen: new Date(DATE), | |
| receiveNotifications: true, | |
| }, | |
| { | |
| id: '2', | |
| createdAt: new Date(DATE), | |
| userId: BRYN_ID, | |
| threadId: 'dm-1', | |
| lastActive: new Date(DATE), | |
| lastSeen: new Date(DATE), | |
| receiveNotifications: true, | |
| }, | |
| { | |
| id: '3', | |
| createdAt: new Date(DATE), | |
| userId: MAX_ID, | |
| threadId: 'dm-1', | |
| lastActive: new Date(DATE), | |
| lastSeen: new Date(DATE), | |
| receiveNotifications: true, | |
| }, | |
| { | |
| id: '4', | |
| createdAt: new Date(DATE), | |
| userId: BRIAN_ID, | |
| threadId: 'dm-2', | |
| lastActive: new Date(DATE - 1), | |
| lastSeen: null, | |
| receiveNotifications: true, | |
| }, | |
| { | |
| id: '5', | |
| createdAt: new Date(DATE), | |
| userId: PREVIOUS_MEMBER_USER_ID, | |
| threadId: 'dm-2', | |
| lastActive: new Date(DATE - 1), | |
| lastSeen: new Date(DATE - 1), | |
| receiveNotifications: true, | |
| }, | |
| ]; | |