Skip to content

Instantly share code, notes, and snippets.

@craigzour
Last active September 9, 2022 13:18
Show Gist options
  • Save craigzour/7085ba5d6845ddea245ff5d46a2f838b to your computer and use it in GitHub Desktop.
Save craigzour/7085ba5d6845ddea245ff5d46a2f838b to your computer and use it in GitHub Desktop.
ex3
const step1 = [
{ FormID: '1', Status: 'New', CreatedAt: 1662477251 }, // Created 10 days ago
{ FormID: '2', Status: 'Saved', CreatedAt: 1662477252 }, // Created 20 days ago
{ FormID: '1', Status: 'New', CreatedAt: 1662477254 }, // Created 28 days ago
{ FormID: '2', Status: 'Saved', CreatedAt: 1662477255 }, // Created 31 days ago
{ FormID: '1', Status: 'Saved', CreatedAt: 1662477257 }, // Created 17 days ago
{ FormID: '3', Status: 'New', CreatedAt: 1662477258 }, // Created 29 days ago
];
const step2 = [
[
{ FormID: '1', Status: 'New', CreatedAt: 1662477251 }, // Created 10 days ago
{ FormID: '1', Status: 'New', CreatedAt: 1662477254 }, // Created 28 days ago
{ FormID: '1', Status: 'Saved', CreatedAt: 1662477257 }, // Created 17 days ago
],
[
{ FormID: '2', Status: 'Saved', CreatedAt: 1662477252 }, // Created 20 days ago
{ FormID: '2', Status: 'Saved', CreatedAt: 1662477255 }, // Created 31 days ago
],
[
{ FormID: '3', Status: 'New', CreatedAt: 1662477258 }, // Created 29 days ago
]
];
const step3 = [
[
{ FormID: '1', Status: 'New', CreatedAt: 1662477254 }, // Created 28 days ago
],
[
{ FormID: '2', Status: 'Saved', CreatedAt: 1662477255 }, // Created 31 days ago
],
[
{ FormID: '3', Status: 'New', CreatedAt: 1662477258 }, // Created 29 days ago
]
];
const step4 = [
{ FormName: 'Form with id 1', ProgramAdministrators: ["omar@test.com", "clement@test.com"] }, // Response for FormID 1 that was created 28 days ago
{ FormName: 'Form with id 2', ProgramAdministrators: ["raphael@test.com"] }, // Response for FormID 2 that was created 31 days ago
{ FormName: 'Form with id 3', ProgramAdministrators: ["bryan@test.com", "clement@test.com", "james@test.com"] }, // Response for FormID 3 that was created 29 days ago
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment