fix: rename timetableServiceExports to timetableService to fix store imports
- timetableOnlyService: timetable-specific methods (line 134) - timetableService: combined export with class/lesson/enrollment methods (line 328) - This fixes 'getClasses is not a function' and 'getMyClasses is not a function' errors
This commit is contained in:
parent
51c0bfaeaf
commit
fc6b6c3d10
@ -131,7 +131,7 @@ export const classService = {
|
||||
// Timetable Service
|
||||
// ============================================================================
|
||||
|
||||
export const timetableService = {
|
||||
export const timetableOnlyService = {
|
||||
async listTimetables(filters?: {
|
||||
class_id?: string;
|
||||
type?: 'ad-hoc' | 'recurring';
|
||||
@ -325,10 +325,10 @@ export const enrollmentService = {
|
||||
// Combined Export
|
||||
// ============================================================================
|
||||
|
||||
export const timetableServiceExports = {
|
||||
export const timetableService = {
|
||||
...classService,
|
||||
...lessonService,
|
||||
...enrollmentService,
|
||||
};
|
||||
|
||||
export default timetableService;
|
||||
export default timetableOnlyService;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user