|
@@ -43,10 +43,10 @@ class LessonService extends CrudService {
|
|
const sedays = await this.getAllDays(batch.startdate, batch.enddate);
|
|
const sedays = await this.getAllDays(batch.startdate, batch.enddate);
|
|
|
|
|
|
const _classs = await this.clamodel.find({ planid: id, termid: elm.id, batchid: batch.id });
|
|
const _classs = await this.clamodel.find({ planid: id, termid: elm.id, batchid: batch.id });
|
|
-
|
|
|
|
- let i = 1;
|
|
|
|
|
|
|
|
for (const cla of _classs) {
|
|
for (const cla of _classs) {
|
|
|
|
+
|
|
|
|
+ let i = 1;
|
|
|
|
|
|
const newlesson = [];
|
|
const newlesson = [];
|
|
for (const day of sedays) {
|
|
for (const day of sedays) {
|