Download spectrum/api/migrations/seed/default/notifications.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/seed/default/notifications.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/migrations/seed/default/notifications.js
-
curl -L -o notifications.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/migrations/seed/default/notifications.js
695 Bytes
| // @flow | |
| const constants = require('./constants'); | |
| const users = require('./users'); | |
| const { DATE, BRIAN_ID, PREVIOUS_MEMBER_USER_ID } = constants; | |
| module.exports = [ | |
| { | |
| actors: [ | |
| { | |
| id: PREVIOUS_MEMBER_USER_ID, | |
| payload: JSON.stringify( | |
| users.find(u => u.id === PREVIOUS_MEMBER_USER_ID) | |
| ), | |
| type: 'USER', | |
| }, | |
| ], | |
| context: { | |
| id: 'dm-2', | |
| payload: '', | |
| type: 'DIRECT_MESSAGE_THREAD', | |
| }, | |
| createdAt: new Date(DATE + 1), | |
| entities: [ | |
| { | |
| id: '1', | |
| payload: '', | |
| type: 'MESSAGE', | |
| }, | |
| ], | |
| event: 'MESSAGE_CREATED', | |
| id: '1', | |
| modifiedAt: new Date(DATE + 1), | |
| }, | |
| ]; | |