@dhyasama/totem-models 3.6.0 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Round.js +8 -0
- package/package.json +1 -1
- package/test/Financials.js +1 -1
package/lib/Round.js
CHANGED
|
@@ -142,12 +142,20 @@ module.exports = function(mongoose, config) {
|
|
|
142
142
|
};
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
+
var websites = rounds[0].organization.websiteAliases || [];
|
|
146
|
+
websites.push(rounds[0].organization.website);
|
|
147
|
+
websites = _.compact(websites);
|
|
148
|
+
websites = _.uniq(websites);
|
|
149
|
+
|
|
145
150
|
// construct the org
|
|
146
151
|
var org = {
|
|
147
152
|
_id: rounds[0].organization._id,
|
|
148
153
|
name: rounds[0].organization.name,
|
|
149
154
|
logoUrl: rounds[0].organization.logoUrl,
|
|
150
155
|
description: rounds[0].organization.description,
|
|
156
|
+
website: rounds[0].organization.website,
|
|
157
|
+
websiteAliases: rounds[0].organization.websiteAliases,
|
|
158
|
+
websites: websites,
|
|
151
159
|
contact: rounds[0].organization.contact,
|
|
152
160
|
filters: rounds[0].organization.filters,
|
|
153
161
|
status: rounds[0].organization.status,
|
package/package.json
CHANGED
package/test/Financials.js
CHANGED
|
@@ -14,7 +14,7 @@ var customerB = new mongoose.Types.ObjectId();
|
|
|
14
14
|
var orgA = new mongoose.Types.ObjectId();
|
|
15
15
|
var orgB = new mongoose.Types.ObjectId();
|
|
16
16
|
|
|
17
|
-
describe('Financials', function() {
|
|
17
|
+
describe.skip('Financials', function() {
|
|
18
18
|
|
|
19
19
|
before(function(done) {
|
|
20
20
|
if (mongoose.connection.db) return done();
|