Skip to content

Commit

Permalink
fix: stringify editor state before saving to database
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Nov 26, 2024
1 parent 78e562d commit 27de412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/editor-route-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function putEntity(req: Request, res: Response) {

// Modify entity with decodedAccessToken.entityId in database
await database.mutate('UPDATE lti_entity SET content = ? WHERE id = ?', [
req.body.editorState,
JSON.stringify(req.body.editorState),
decodedAccessToken.entityId,
])
logger.info(
Expand Down

0 comments on commit 27de412

Please sign in to comment.