Skip to content

Commit

Permalink
chore: Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkobits committed Dec 18, 2021
1 parent 8b7450c commit 2c901b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nr.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default nr(({ createCommand, createScript, isCI }) => {

// ----- Backend Scripts -----------------------------------------------------

createBabelNodeCommand('backend-deploy-dev', ['serverless', ['deploy'], { stage: 'prod' }], {
createBabelNodeCommand('backend-deploy-dev', ['serverless', ['deploy']], {
execaOptions: { cwd: BACKEND_CWD }
});

createBabelNodeCommand('backend-deploy-prod', ['serverless', ['deploy']], {
createBabelNodeCommand('backend-deploy-prod', ['serverless', ['deploy'], { stage: 'prod' }], {
execaOptions: { cwd: BACKEND_CWD }
});

Expand Down
6 changes: 4 additions & 2 deletions packages/client/src/lib/photos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ export async function getPhotoCollections() {
const sortedCollection = shuffleSeed.shuffle(R.sortBy(R.prop('id'), photoCache.photos), name);

ifDebug(() => {
const collectionHash = objectHash(sortedCollection);
console.debug('[getPhotoCollections] Collection hash:', collectionHash);
const collectionHash = objectHash(photoCache?.photos);
console.debug(`[getPhotoCollections] Collection hash, unsorted, using seed "${name}":`, collectionHash);
const sortedCollectionHash = objectHash(sortedCollection);
console.debug(`[getPhotoCollections] Collection hash, sorted, using seed "${name}":`, sortedCollectionHash);
}, { once: true });

return sortedCollection;
Expand Down

0 comments on commit 2c901b3

Please sign in to comment.