Add creator
This commit is contained in:
@@ -11,6 +11,7 @@ module.exports = function (options) {
|
||||
if (translationArtifactVersion) {
|
||||
// fork...
|
||||
const forkedTranslationArtifactVersion = await db.TranslationArtifactVersion.create({
|
||||
creatorId: request.user.id,
|
||||
name: translationArtifactVersion.name,
|
||||
artifactVersionId: translationArtifactVersion.artifactVersionId,
|
||||
userId: request.user.id,
|
||||
@@ -100,6 +101,7 @@ module.exports = function (options) {
|
||||
if (artifactVersion.translationArtifactVersions.length == 0) {
|
||||
// create a translationArtifactVersion with a new dialect...
|
||||
return db.TranslationArtifactVersion.create({
|
||||
creatorId: userId,
|
||||
name: dialect.name,
|
||||
artifactVersionId: artifactVersion.id,
|
||||
dialectId: dialect.id,
|
||||
@@ -108,6 +110,7 @@ module.exports = function (options) {
|
||||
})
|
||||
} else {
|
||||
return db.TranslationArtifactVersion.create({
|
||||
creatorId: userId,
|
||||
name: artifactVersion.translationArtifactVersions[0].name,
|
||||
artifactVersionId: artifactVersion.translationArtifactVersions[0].artifactVersionId,
|
||||
userId: userId,
|
||||
|
||||
Reference in New Issue
Block a user