Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit 3046df5

Browse files
committed
fixed some shit right before the dealine
1 parent 6c84666 commit 3046df5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/services/calculate-shipments.service.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class CalculateShipmentsService {
8989
// otherwise run compatibility algo
9090
await CompatibilityAlgo();
9191
await SortCombination();
92-
await resolve(checkCopies(FinalSortedArray));
92+
await resolve(checkComboCopies(FinalSortedArray));
9393
} else {
9494
// sort shipments with same origin and destination into an array
9595
let destinations = [];
@@ -111,7 +111,7 @@ export class CalculateShipmentsService {
111111
// otherwise run compatibility algo
112112
await CompatibilityAlgo();
113113
await SortCombination();
114-
await resolve(checkCopies(FinalSortedArray));
114+
await resolve(checkComboCopies(FinalSortedArray));
115115
// resolve(FinalSortedArray);
116116
}
117117

@@ -226,7 +226,7 @@ export class CalculateShipmentsService {
226226
return combs;
227227
}
228228

229-
async function checkCopies(array) {
229+
async function checkComboCopies(array) {
230230
for (let i = 0; i < array.length - 1; i++) {
231231
if (array[i].length === array[i + 1].length) {
232232
if (array[i][0].ShipperName === array[i + 1][0].ShipperName) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /