requests.js 494 B

1234567891011121314151617181920212223242526
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const {
  6. UPDATE_REQUESTS,
  7. } = require("../constants");
  8. /**
  9. * Update request items
  10. *
  11. * @param {array} requests - visible request items
  12. */
  13. function updateRequests(items) {
  14. return {
  15. type: UPDATE_REQUESTS,
  16. items,
  17. };
  18. }
  19. module.exports = {
  20. updateRequests,
  21. };