Tracker with filter ability
This commit is contained in:
@@ -1151,6 +1151,9 @@ module.exports = function (options) {
|
||||
if (project) {
|
||||
db.TranslationChapter.findAll({
|
||||
include: [
|
||||
{
|
||||
association: db.TranslationChapter.Chapter,
|
||||
},
|
||||
{
|
||||
association: db.TranslationChapter.TranslationChunks,
|
||||
include: [
|
||||
@@ -1186,9 +1189,16 @@ module.exports = function (options) {
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
association: db.TranslationArtifactVersion.Dialect
|
||||
},
|
||||
request.query.dialectId ? {
|
||||
association: db.TranslationArtifactVersion.Dialect,
|
||||
required: true,
|
||||
where: {
|
||||
id: request.query.dialectId
|
||||
}
|
||||
} : {
|
||||
association: db.TranslationArtifactVersion.Dialect,
|
||||
}
|
||||
,
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user