File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
packages/db/src/impl/pouch Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ interface CourseLookupDoc {
1010 disambiguator ?: string ;
1111}
1212
13+ console . log ( `COURSELOOKUP FILE RUNNING` ) ;
14+
1315/**
1416 * a k-v indexes created courses.
1517 *
@@ -18,13 +20,16 @@ interface CourseLookupDoc {
1820 */
1921export default class CourseLookup {
2022 // [ ] this db should be read only for public, admin-write only
21- static _db : PouchDB . Database = new pouch (
22- ENV . COUCHDB_SERVER_PROTOCOL + '://' + ENV . COUCHDB_SERVER_URL + courseLookupDBTitle ,
23- {
24- skip_setup : true ,
25- }
26- ) ;
23+ // static _db: PouchDB.Database = new pouch(
24+ // ENV.COUCHDB_SERVER_PROTOCOL + '://' + ENV.COUCHDB_SERVER_URL + courseLookupDBTitle,
25+ // {
26+ // // skip_setup: true,
27+ // }
28+ // );
2729
30+ static _db : PouchDB . Database = new pouch ( 'http://localhost:5984/' + courseLookupDBTitle , {
31+ skip_setup : true ,
32+ } ) ;
2833 /**
2934 * Adds a new course to the lookup database, and returns the courseID
3035 * @param courseName
You can’t perform that action at this time.
0 commit comments