Skip to content

Commit

Permalink
N21-1324 school in migration err
Browse files Browse the repository at this point in the history
  • Loading branch information
mrikallab committed Sep 29, 2023
1 parent f82ea23 commit 13fc7fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { EntityId, LegacySchoolDo, UserDO, UserLoginMigrationDO } from '@shared/
import { UserLoginMigrationRepo } from '@shared/repo';
import { LegacySchoolService } from '@src/modules/legacy-school';
import { UserService } from '@src/modules/user';
import { SchoolInMigrationError } from '../../authentication/errors/school-in-migration.error';

@Injectable()
export class MigrationCheckService {
Expand Down Expand Up @@ -33,7 +34,7 @@ export class MigrationCheckService {
const hasMigrated: boolean = user.lastLoginSystemChange > userLoginMigration.startedAt;
return !hasMigrated;
}
return !!userLoginMigration && !userLoginMigration.closedAt;
return !!userLoginMigration && !userLoginMigration.closedAt; */
}
return false;
}
Expand Down

0 comments on commit 13fc7fc

Please sign in to comment.