Skip to content

Commit f1c57ea

Browse files
committed
Remove debug console logs
1 parent 3b4b3bb commit f1c57ea

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ app.post(getRoutePath("create"), async (req, reply) => {
118118
});
119119

120120
app.post(getRoutePath("delete"), async (req, reply) => {
121-
console.log(req.body.id);
122121
let inCreateIdx = db.data.create.findIndex(({ id }) => req.body.id === id);
123-
console.log({ inCreateIdx });
124122
if (inCreateIdx !== -1) {
125123
db.data.create.splice(inCreateIdx, 1);
126124

@@ -129,7 +127,6 @@ app.post(getRoutePath("delete"), async (req, reply) => {
129127
}
130128

131129
let inConsumeIdx = db.data.consume.findIndex(({ id }) => req.body.id === id);
132-
console.log({ inConsumeIdx });
133130
if (inConsumeIdx !== -1) {
134131
db.data.consume.splice(inConsumeIdx, 1);
135132
await db.write();

statics/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ for (let btn of document.getElementsByClassName("add-link-btn")) {
8686

8787
document.querySelector(".export-btn").addEventListener("click", async () => {
8888
const links = await fetch(`${routePrefix}/links`).then((resp) => resp.json());
89-
console.log(links);
89+
9090
await navigator.clipboard.writeText(`## Things I worked on
9191
9292
${links.create

0 commit comments

Comments
 (0)