Skip to content

Commit 51c39f2

Browse files
committed
Merge branch 'develop' of https://github.com/corpus-io/dm3 into 772-next-js-issue
2 parents a7b7cd2 + 89c1f3a commit 51c39f2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/backend/src/profile.ts

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ export default () => {
9696
message: 'POST profile',
9797
error: JSON.stringify(e),
9898
});
99+
// eslint-disable-next-line no-console
100+
console.log('POST PROFILE ERROR', e);
99101
res.status(400).send({
100102
message: `Couldn't store profile`,
101103
error: JSON.stringify(e),

packages/backend/src/storage.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { normalizeEnsName } from '@dm3-org/dm3-lib-profile';
22
import cors from 'cors';
33
import express from 'express';
44
import stringify from 'safe-stable-stringify';
5+
import { auth } from './utils';
56

67
export default () => {
78
const router = express.Router();
89

910
//TODO remove
1011
router.use(cors());
12+
router.param('ensName', auth);
1113

1214
router.get('/new/:ensName/:key', async (req, res, next) => {
1315
try {

packages/backend/src/utils.ts

-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ const getCachedProvider = (
184184
cache.delete(key);
185185
//Continue to fetch the value
186186
}
187-
console.log('eth_chainId cache miss', key);
188187

189188
//@ts-ignore
190189
const result = await target[fnSig](method);
@@ -207,7 +206,6 @@ const getCachedProvider = (
207206
cache.delete(key);
208207
//Continue to fetch the value
209208
}
210-
console.log('eth_call cache miss', key);
211209
//@ts-ignore
212210
const result = await target[fnSig](method, ...args);
213211
cache.set(key, { createAt: Date.now(), value: result });

0 commit comments

Comments
 (0)