Skip to content

Commit 5864aed

Browse files
committed
use locally exported ENV var
1 parent 2c2bdfa commit 5864aed

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import pouch from 'pouchdb';
2-
import { ENV } from '@vue-skuilder/common';
1+
import pouch from './pouchdb-setup';
2+
import { ENV } from '@/factory';
33
import {
44
pouchDBincludeCredentialsConfig,
55
getStartAndEndKeys,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ENV } from '@vue-skuilder/common';
1+
import { ENV } from '@/factory';
22
import { GuestUsername } from '../../core/types/types-legacy';
33

44
interface SessionResponse {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import {
33
StudySessionNewItem,
44
StudySessionReviewItem,
55
} from '@/core/interfaces/contentSource';
6-
import { ClassroomConfig, ENV } from '@vue-skuilder/common';
6+
import { ClassroomConfig } from '@vue-skuilder/common';
7+
import { ENV } from '@/factory';
78
import moment from 'moment';
89
import pouch from 'pouchdb';
910
import {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pouch from 'pouchdb';
22
import { pouchDBincludeCredentialsConfig } from '.';
3-
import { ENV } from '@vue-skuilder/common';
3+
import { ENV } from '@/factory';
44
// import { DataShape } from '../..base-course/Interfaces/DataShape';
55
import { NameSpacer, ShapeDescriptor } from '@vue-skuilder/common';
66
import { CourseConfig, DataShape } from '@vue-skuilder/common';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pouch from 'pouchdb';
2-
import { ENV } from '@vue-skuilder/common';
2+
// import { ENV } from '@/factory';
33

44
const courseLookupDBTitle = 'coursedb-lookup';
55

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { DocType, SkuilderCourseData, GuestUsername, log } from '../../core/types/types-legacy';
2-
import { ENV } from '@vue-skuilder/common';
1+
import { ENV } from '@/factory';
2+
import { DocType, GuestUsername, log, SkuilderCourseData } from '../../core/types/types-legacy';
33
// import { getCurrentUser } from '../../stores/useAuthStore';
44
import moment, { Moment } from 'moment';
55
import PouchDBAuth from '@nilock2/pouchdb-authentication';

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { getCardHistoryID } from '@/core/util';
2-
import { CourseElo, ENV, Status } from '@vue-skuilder/common';
2+
import { CourseElo, Status } from '@vue-skuilder/common';
3+
import { ENV } from '@/factory';
34
import moment, { Moment } from 'moment';
45
import { GuestUsername } from '../../core/types/types-legacy';
56
import pouch from './pouchdb-setup';

0 commit comments

Comments
 (0)