Skip to content

Commit

Permalink
Merge pull request #5 from kipr/navzam/remove-excess-logging
Browse files Browse the repository at this point in the history
Remove excess logging
  • Loading branch information
tcorbly authored Nov 12, 2024
2 parents f909c8a + f6a2dc3 commit 0a8d73c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cli/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ interface Args {
}

export default async (args: Args) => {
console.log('adasdasd');
console.log(args);
const res = await axios({
method: 'get',
url: `${args.url}/v1/big_store/${args.asset}`,
Expand Down
1 change: 0 additions & 1 deletion src/big-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default (app: FastifyInstance, db: Db) => {
});

const contentType = request.headers['content-type'];
console.log ('content-type', contentType);

writeStream.on('error', (err) => {
console.error(err);
Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ app.get('/:collection', async (request, reply) => {

const createPostPatchHandler = (isPatch: boolean) => async (request: FastifyRequest, reply: FastifyReply) => {
const token = await authenticate(request);
console.log('token', token);

if (!token) return unauthorized(reply);

Expand Down Expand Up @@ -120,8 +119,6 @@ const createPostPatchHandler = (isPatch: boolean) => async (request: FastifyRequ

const res = await db.set({ selector: { collection, id }, value, userId: token.sub, partialUpdate: isPatch });

console.log(res);

if (res.type === 'error') {
reply.code(res.code).send({ message: res.message });
return;
Expand Down

0 comments on commit 0a8d73c

Please sign in to comment.