aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/Notes/helpers/noteActions.js4
-rw-r--r--pages/api/notes/[id].js2
-rw-r--r--pages/api/notes/index.js2
-rw-r--r--styles/main/_splash.scss2
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/Notes/helpers/noteActions.js b/apps/Notes/helpers/noteActions.js
index d934229..99cafbd 100644
--- a/apps/Notes/helpers/noteActions.js
+++ b/apps/Notes/helpers/noteActions.js
@@ -25,7 +25,7 @@ export const addNote = async (e, mutateNotes, setAction, t, setPopup) => {
mutateNotes(
await fetchJson('/api/notes', {
method: 'POST',
- headers: { 'Content-Type': 'application/json' },
+ headers: { 'Content-Type': 'plain/text; charset=utf-8' },
body: JSON.stringify({ title, content })
})
)
@@ -52,7 +52,7 @@ export const updateNote = async (e, note, mutateNotes, setAction, t, setPopup) =
mutateNotes(
await fetchJson(`/api/notes/${_id}`, {
method: 'PUT',
- headers: { 'Content-Type': 'application/json' },
+ headers: { 'Content-Type': 'plain/text; charset=utf-8' },
body: JSON.stringify({ title, noteId, content })
})
)
diff --git a/pages/api/notes/[id].js b/pages/api/notes/[id].js
index a2cd680..5099f4f 100644
--- a/pages/api/notes/[id].js
+++ b/pages/api/notes/[id].js
@@ -54,7 +54,7 @@ export default withSession(async (req, res) => {
try {
const session = await conn.startSession()
const user = req.session.get('user')
- const { title, noteId, content } = req.body
+ const { title, noteId, content } = JSON.parse(req.body)
if (!user || !user?.isVerified || !_id || !content) {
throw new Error('Something went wrong')
diff --git a/pages/api/notes/index.js b/pages/api/notes/index.js
index 86369ed..2c53909 100644
--- a/pages/api/notes/index.js
+++ b/pages/api/notes/index.js
@@ -26,7 +26,7 @@ export default withSession(async (req, res) => {
try {
const session = await conn.startSession()
const user = req.session.get('user')
- const { title, content } = req.body
+ const { title, content } = JSON.parse(req.body)
if (!user || !user?.isVerified || !content) {
throw new Error('Something went wrong')
diff --git a/styles/main/_splash.scss b/styles/main/_splash.scss
index 64ccdf1..82347d0 100644
--- a/styles/main/_splash.scss
+++ b/styles/main/_splash.scss
@@ -16,7 +16,7 @@
}
svg {
- font-size: 600%;
+ font-size: 64px;
color: #555;
}