Browse Source

FIX | Old db seed

merge-requests/236/head
Vitalik 2 years ago
parent
commit
1cf3e4a426
  1. 4
      src/domain/old-database-seed/services/tasks-comments.service.ts
  2. 4
      src/domain/old-database-seed/services/tasks.service.ts

4
src/domain/old-database-seed/services/tasks-comments.service.ts

@ -133,8 +133,8 @@ export class OldDBTasksCommentsService { @@ -133,8 +133,8 @@ export class OldDBTasksCommentsService {
private async getNewEntitiesIds(type: OldDbRelationType) {
const relations = await this.oldDbRelationsRepository.find({
where: {type},
limit: 100
where: { type },
take: 100,
})
return relations.map(it => it.newId)

4
src/domain/old-database-seed/services/tasks.service.ts

@ -39,7 +39,7 @@ export class OldDBTasksService { @@ -39,7 +39,7 @@ export class OldDBTasksService {
}
}
this.readAllTasks()
await this.readAllTasks()
}
private async getOldTasks(): Promise<IOldTask[]> {
@ -190,7 +190,7 @@ export class OldDBTasksService { @@ -190,7 +190,7 @@ export class OldDBTasksService {
for (const taskId of tasksIds) {
for (const userId of usersIds) {
this.tasksEventsService.addEvent({
await this.tasksEventsService.addEvent({
taskId,
userId,
event: Tasks.Event.Read,

Loading…
Cancel
Save