github.com/hernad/nomad@v1.6.112/ui/mirage/serializers/region.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import ApplicationSerializer from './application';
     7  
     8  export default ApplicationSerializer.extend({
     9    serialize() {
    10      var json = ApplicationSerializer.prototype.serialize.apply(this, arguments);
    11      return [].concat(json).mapBy('ID');
    12    },
    13  });