@riocrypto/common-server 1.0.2929 → 1.0.2931
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.
|
@@ -61,8 +61,8 @@ const getOrderFromReference = (reference, mongoose) => __awaiter(void 0, void 0,
|
|
|
61
61
|
const newFormatCandidates = hexWindows(reference, NEW_FORMAT_LENGTH).map((window) => window.toUpperCase());
|
|
62
62
|
const oldFormatWindows = hexWindows(reference, OLD_FORMAT_LENGTH);
|
|
63
63
|
// A reference is a run of hex, so text without one cannot contain any order's
|
|
64
|
-
// token in either format.
|
|
65
|
-
//
|
|
64
|
+
// token in either format. Free text ends here instead of walking the active
|
|
65
|
+
// orders to confirm what is already known.
|
|
66
66
|
if (!newFormatCandidates.length && !oldFormatWindows.length) {
|
|
67
67
|
throw new Error("Order not found");
|
|
68
68
|
}
|