Skip to content

Commit

Permalink
fix merge complications
Browse files Browse the repository at this point in the history
  • Loading branch information
mono424 committed Sep 15, 2023
1 parent 1b1b1ab commit b996d07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/ts/data-store/admin-lecture-list.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StreamableMapProvider } from "./provider";
import { AdminLectureList, Lecture, LectureFile, UpdateLectureMetaRequest } from "../api/admin-lecture-list";
import { FileType } from "../edit-course";
import { UploadFileListener } from "../global";
import {PostFormDataListener} from "../utilities/fetch-wrappers";

const dateFormatOptions: Intl.DateTimeFormatOptions = {
weekday: "long",
Expand Down Expand Up @@ -174,7 +174,7 @@ export class AdminLectureListProvider extends StreamableMapProvider<number, Lect
lectureId: number,
videoType: string,
file: File,
listener: UploadFileListener = {},
listener: PostFormDataListener = {},
) {
await AdminLectureList.uploadVideo(courseId, lectureId, videoType, file, listener);
}
Expand Down
1 change: 1 addition & 0 deletions web/ts/edit-course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from "./api/admin-lecture-list";
import { ChangeSet, comparatorPipeline, ignoreKeys, singleProperty } from "./change-set";
import { AlpineComponent } from "./components/alpine-component";
import {uploadFile} from "./utilities/fetch-wrappers";

export enum UIEditMode {
none,
Expand Down
2 changes: 0 additions & 2 deletions web/ts/utilities/fetch-wrappers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { postFormData } from "../global";

/**
* Wrapper for Javascript's fetch function for GET
* @param {string} url URL to fetch
Expand Down

0 comments on commit b996d07

Please sign in to comment.