Skip to content

Commit 785ad67

Browse files
committed
add todo
1 parent b341a90 commit 785ad67

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/db/src/impl/couch/courseLookupDB.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ export default class CourseLookup {
105105
* @returns Promise<void>
106106
*/
107107
static async addWithId(
108-
courseId: string,
109-
courseName: string,
108+
courseId: string,
109+
courseName: string,
110110
disambiguator?: string
111111
): Promise<void> {
112112
const doc: Omit<CourseLookupDoc, '_rev'> = {
113113
_id: courseId,
114114
name: courseName,
115115
};
116-
116+
117117
if (disambiguator) {
118118
doc.disambiguator = disambiguator;
119119
}
@@ -130,6 +130,7 @@ export default class CourseLookup {
130130
return await CourseLookup._db.remove(doc);
131131
}
132132

133+
// [ ] rename to allCourses()
133134
static async allCourseWare(): Promise<CourseLookupDoc[]> {
134135
const resp = await CourseLookup._db.allDocs<CourseLookupDoc>({
135136
include_docs: true,

0 commit comments

Comments
 (0)