@fuzzle/opencode-accountant 0.7.4-next.1 → 0.7.4
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/dist/index.js +1 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25165,15 +25165,8 @@ async function importPipeline(directory, agent, options, configLoader = loadImpo
|
|
|
25165
25165
|
}
|
|
25166
25166
|
executePreprocessBtcStep(context, contextIds, logger);
|
|
25167
25167
|
await executeBtcPurchaseStep(context, contextIds, logger);
|
|
25168
|
-
const orderedContextIds = [...contextIds].sort((a, b) => {
|
|
25169
|
-
const ctxA = loadContext(context.directory, a);
|
|
25170
|
-
const ctxB = loadContext(context.directory, b);
|
|
25171
|
-
const isBtcA = ctxA.provider === "revolut" && ctxA.currency === "btc" ? 1 : 0;
|
|
25172
|
-
const isBtcB = ctxB.provider === "revolut" && ctxB.currency === "btc" ? 1 : 0;
|
|
25173
|
-
return isBtcA - isBtcB;
|
|
25174
|
-
});
|
|
25175
25168
|
let totalTransactions = 0;
|
|
25176
|
-
for (const contextId of
|
|
25169
|
+
for (const contextId of contextIds) {
|
|
25177
25170
|
const importContext = loadContext(context.directory, contextId);
|
|
25178
25171
|
logger.info(`Processing: ${importContext.filename} (${importContext.accountNumber || "unknown account"})`);
|
|
25179
25172
|
try {
|