Skip to content

Commit

Permalink
fix(daemon): Address off-by-nybble formula path error (merge #2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored Jan 30, 2024
2 parents 26f6c01 + a3f0c24 commit b18074a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/daemon/src/daemon-node-powers.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export const makeDaemonicPersistencePowers = (
);
}
const head = formulaId512.slice(0, 2);
const tail = formulaId512.slice(3);
const tail = formulaId512.slice(2);
const directory = filePowers.joinPath(
statePath,
'formulas',
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/src/pet-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export const makePetStoreMaker = (filePowers, locator) => {
throw new Error(`Invalid identifier for pet store ${q(id)}`);
}
const prefix = id.slice(0, 2);
const suffix = id.slice(3);
const suffix = id.slice(2);
const petNameDirectoryPath = filePowers.joinPath(
locator.statePath,
'pet-store-id512',
Expand Down

0 comments on commit b18074a

Please sign in to comment.