From 01f1b72352a1c3b8f20cf74ceda21736cc27b545 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Thu, 13 Jan 2022 23:27:50 +0200 Subject: [PATCH] Save original text when saving translation --- server/router/versions/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/router/versions/index.js b/server/router/versions/index.js index f275c93..00ce604 100644 --- a/server/router/versions/index.js +++ b/server/router/versions/index.js @@ -181,6 +181,7 @@ module.exports = function (options) { db.Chapter.create({ creatorId: request.user.id, name: chunks[0].trim(), + originalText: request.body.text, artifactVersionId: artifactVersion.id, chunks: chunks.map((chunk,index) => { return {