auditLogs.js 856 B

123456789101112131415161718192021222324252627282930313233
  1. export function AuditLogs(params = []) {
  2. return [
  3. {
  4. note: 'edited project ludic-science',
  5. targetObject: 2,
  6. targetUser: null,
  7. data: {
  8. status: 0,
  9. slug: 'ludic-science',
  10. public: false,
  11. name: 'Ludic Science',
  12. id: 2,
  13. },
  14. dateCreated: '2018-02-21T03:04:23.157Z',
  15. ipAddress: '127.0.0.1',
  16. id: '465',
  17. actor: TestStubs.User({isSuperuser: true}),
  18. event: 'project.edit',
  19. },
  20. {
  21. note: 'edited the organization setting(s): accountRateLimit from 1000 to 0',
  22. targetObject: 2,
  23. targetUser: null,
  24. data: {accountRateLimit: 'from 1000 to 0'},
  25. dateCreated: '2018-02-16T23:45:59.813Z',
  26. ipAddress: '127.0.0.1',
  27. id: '408',
  28. actor: TestStubs.User({isSuperuser: false}),
  29. event: 'org.edit',
  30. },
  31. ...params,
  32. ];
  33. }