Skip to content

Commit 29834ea

Browse files
committed
[tmp] hardcode devenv values for courseLookup db
1 parent 2c34489 commit 29834ea

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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
*/
1921
export 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

0 commit comments

Comments
 (0)