refactor: stdLearning history function
This commit is contained in:
parent
522090886c
commit
f88da97055
|
|
@ -252,6 +252,9 @@ export const learningHistory = async (req, res) => {
|
|||
|
||||
const stdLearnings = await models.StdLearning.findAll({
|
||||
where: { ID },
|
||||
STUDENT_FINISH: {
|
||||
[models.Sequelize.Op.ne]: null,
|
||||
},
|
||||
include: [
|
||||
{
|
||||
model: models.Level,
|
||||
|
|
@ -349,6 +352,9 @@ export const learningHistoryBySectionId = async (req, res) => {
|
|||
|
||||
const stdLearnings = await models.StdLearning.findAll({
|
||||
where: { ID },
|
||||
STUDENT_FINISH: {
|
||||
[models.Sequelize.Op.ne]: null,
|
||||
},
|
||||
include: [
|
||||
{
|
||||
model: models.Level,
|
||||
|
|
@ -451,6 +457,9 @@ export const learningHistoryByTopicId = async (req, res) => {
|
|||
|
||||
const stdLearnings = await models.StdLearning.findAll({
|
||||
where: { ID },
|
||||
STUDENT_FINISH: {
|
||||
[models.Sequelize.Op.ne]: null,
|
||||
},
|
||||
include: [
|
||||
{
|
||||
model: models.Level,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user