javascript-solid-server 0.0.121 → 0.0.122

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-solid-server",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "description": "A minimal, fast Solid server",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -169,7 +169,7 @@ async function checkAuthorizations(authorizations, targetUrl, agentWebId, requir
169
169
  if (agentWebId && cost > 0) {
170
170
  try {
171
171
  const ledger = await readLedger();
172
- const balance = getBalance(ledger, agentWebId, currency === 'sats' ? 'sat' : currency);
172
+ const balance = getBalance(ledger, agentWebId);
173
173
  if (balance >= cost) {
174
174
  // Deduct and grant access
175
175
  debit(ledger, agentWebId, cost, currency === 'sats' ? 'sat' : currency);