Save original text when saving translation
This commit is contained in:
@@ -181,6 +181,7 @@ module.exports = function (options) {
|
|||||||
db.Chapter.create({
|
db.Chapter.create({
|
||||||
creatorId: request.user.id,
|
creatorId: request.user.id,
|
||||||
name: chunks[0].trim(),
|
name: chunks[0].trim(),
|
||||||
|
originalText: request.body.text,
|
||||||
artifactVersionId: artifactVersion.id,
|
artifactVersionId: artifactVersion.id,
|
||||||
chunks: chunks.map((chunk,index) => {
|
chunks: chunks.map((chunk,index) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user