mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: schools typo
This commit is contained in:
@@ -10,5 +10,5 @@ export class HttpService {
|
|||||||
|
|
||||||
getAllStudents = () => this.fakeBackend.getAllStudents().pipe(take(1));
|
getAllStudents = () => this.fakeBackend.getAllStudents().pipe(take(1));
|
||||||
|
|
||||||
getAllSchools = () => this.fakeBackend.getAllStchools().pipe(take(1));
|
getAllSchools = () => this.fakeBackend.getAllSchools().pipe(take(1));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
randStudent,
|
randStudent,
|
||||||
randTeacher,
|
randTeacher,
|
||||||
} from '@angular-challenges/ngrx-notification/model';
|
} from '@angular-challenges/ngrx-notification/model';
|
||||||
import { inject, Injectable } from '@angular/core';
|
import { Injectable, inject } from '@angular/core';
|
||||||
import { randCompanyName, randFirstName } from '@ngneat/falso';
|
import { randCompanyName, randFirstName } from '@ngneat/falso';
|
||||||
import { concatLatestFrom } from '@ngrx/effects';
|
import { concatLatestFrom } from '@ngrx/effects';
|
||||||
import { map, tap, timer } from 'rxjs';
|
import { map, tap, timer } from 'rxjs';
|
||||||
@@ -17,7 +17,7 @@ export class FakeBackendService {
|
|||||||
|
|
||||||
getAllTeachers = () => this.fakeDbService.teachers$;
|
getAllTeachers = () => this.fakeDbService.teachers$;
|
||||||
getAllStudents = () => this.fakeDbService.students$;
|
getAllStudents = () => this.fakeDbService.students$;
|
||||||
getAllStchools = () => this.fakeDbService.schools$;
|
getAllSchools = () => this.fakeDbService.schools$;
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
this.fakeAddTeacher();
|
this.fakeAddTeacher();
|
||||||
@@ -33,7 +33,7 @@ export class FakeBackendService {
|
|||||||
.pipe(
|
.pipe(
|
||||||
map(() => randTeacher()),
|
map(() => randTeacher()),
|
||||||
tap((teacher) => this.pushService.pushData(teacher)),
|
tap((teacher) => this.pushService.pushData(teacher)),
|
||||||
tap((teacher) => this.fakeDbService.addTeacher(teacher))
|
tap((teacher) => this.fakeDbService.addTeacher(teacher)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ export class FakeBackendService {
|
|||||||
version: teacher.version + 1,
|
version: teacher.version + 1,
|
||||||
})),
|
})),
|
||||||
tap((teacher) => this.pushService.pushData(teacher)),
|
tap((teacher) => this.pushService.pushData(teacher)),
|
||||||
tap((teacher) => this.fakeDbService.updateTeacher(teacher))
|
tap((teacher) => this.fakeDbService.updateTeacher(teacher)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ export class FakeBackendService {
|
|||||||
.pipe(
|
.pipe(
|
||||||
map(() => randStudent()),
|
map(() => randStudent()),
|
||||||
tap((student) => this.pushService.pushData(student)),
|
tap((student) => this.pushService.pushData(student)),
|
||||||
tap((student) => this.fakeDbService.addStudent(student))
|
tap((student) => this.fakeDbService.addStudent(student)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
@@ -73,7 +73,7 @@ export class FakeBackendService {
|
|||||||
version: student.version + 1,
|
version: student.version + 1,
|
||||||
})),
|
})),
|
||||||
tap((student) => this.pushService.pushData(student)),
|
tap((student) => this.pushService.pushData(student)),
|
||||||
tap((student) => this.fakeDbService.updateSudent(student))
|
tap((student) => this.fakeDbService.updateSudent(student)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,7 @@ export class FakeBackendService {
|
|||||||
.pipe(
|
.pipe(
|
||||||
map(() => randSchool()),
|
map(() => randSchool()),
|
||||||
tap((school) => this.pushService.pushData(school)),
|
tap((school) => this.pushService.pushData(school)),
|
||||||
tap((school) => this.fakeDbService.addSchool(school))
|
tap((school) => this.fakeDbService.addSchool(school)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
@@ -98,7 +98,7 @@ export class FakeBackendService {
|
|||||||
version: school.version + 1,
|
version: school.version + 1,
|
||||||
})),
|
})),
|
||||||
tap((school) => this.pushService.pushData(school)),
|
tap((school) => this.pushService.pushData(school)),
|
||||||
tap((school) => this.fakeDbService.updateSchool(school))
|
tap((school) => this.fakeDbService.updateSchool(school)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user