Rename entries to artifacts
This commit is contained in:
@@ -108,8 +108,8 @@ module.exports = function (options) {
|
||||
]
|
||||
}).then(async (project) => {
|
||||
if (project) {
|
||||
const entries = await db.Artifact.findAll({
|
||||
// Narrow it down to entries this user has admin ownership off...,
|
||||
const artifacts = await db.Artifact.findAll({
|
||||
// Narrow it down to artifacts this user has admin ownership off...,
|
||||
include: [
|
||||
{
|
||||
association: db.Artifact.ArtifactVersions,
|
||||
@@ -123,7 +123,7 @@ module.exports = function (options) {
|
||||
user: request.user,
|
||||
pageTitle: "Projects - Mantra",
|
||||
project: project,
|
||||
entries: entries
|
||||
artifacts: artifacts
|
||||
})
|
||||
} else {
|
||||
next()
|
||||
@@ -171,7 +171,7 @@ module.exports = function (options) {
|
||||
if (project) {
|
||||
// TODO: Fi
|
||||
const artifactVersion = await db.ArtifactVersion.findByPk(request.body.artifactVersionId, {
|
||||
// Narrow it down to entries this user has admin ownership off...,
|
||||
// Narrow it down to artifacts this user has admin ownership off...,
|
||||
})
|
||||
|
||||
if (artifactVersion) {
|
||||
@@ -209,7 +209,7 @@ module.exports = function (options) {
|
||||
}).then(async (project) => {
|
||||
if (project) {
|
||||
const translationArtifactVersions = await db.TranslationArtifactVersion.findAll({
|
||||
// Narrow it down to entries this user has admin ownership off...,
|
||||
// Narrow it down to artifacts this user has admin ownership off...,
|
||||
include: [
|
||||
{
|
||||
association: db.TranslationArtifactVersion.ArtifactVersion,
|
||||
@@ -250,7 +250,7 @@ module.exports = function (options) {
|
||||
if (project) {
|
||||
// TODO: Fi
|
||||
const translationArtifactVersion = await db.TranslationArtifactVersion.findByPk(request.body.translationArtifactVersionId, {
|
||||
// Narrow it down to entries this user has admin ownership off...,
|
||||
// Narrow it down to artifacts this user has admin ownership off...,
|
||||
include: [
|
||||
{
|
||||
association: db.TranslationArtifactVersion.ArtifactVersion,
|
||||
|
||||
Reference in New Issue
Block a user