Add creator
This commit is contained in:
@@ -90,6 +90,7 @@ module.exports = function (options) {
|
||||
if (artifactVersion && isString) {
|
||||
const chunks = request.body.text.trim().split(/\r?\n\r?\n/)
|
||||
db.Chapter.create({
|
||||
creatorId: request.user.id,
|
||||
name: chunks[0].trim(),
|
||||
artifactVersionId: artifactVersion.id,
|
||||
chunks: chunks.map((chunk,index) => {
|
||||
@@ -250,6 +251,7 @@ module.exports = function (options) {
|
||||
|
||||
if (dialect) {
|
||||
const translationArtifactVersion = await db.TranslationArtifactVersion.create({
|
||||
creatorId: request.user.id,
|
||||
name: dialect.name,
|
||||
artifactVersionId: artifactVersion.id,
|
||||
dialectId: dialect.id,
|
||||
|
||||
Reference in New Issue
Block a user