aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/ApiManagers/GooglePhotosManager.ts3
-rw-r--r--src/server/authentication/models/current_user_utils.ts5
-rw-r--r--src/server/index.ts2
3 files changed, 7 insertions, 3 deletions
diff --git a/src/server/ApiManagers/GooglePhotosManager.ts b/src/server/ApiManagers/GooglePhotosManager.ts
index 1138dede1..c7af69375 100644
--- a/src/server/ApiManagers/GooglePhotosManager.ts
+++ b/src/server/ApiManagers/GooglePhotosManager.ts
@@ -31,6 +31,9 @@ interface NewMediaItem {
}
const prefix = "google_photos_";
+/**
+ * This manager handles the creation of routes for google photos functionality.
+ */
export default class GooglePhotosManager extends ApiManager {
protected initialize(register: Registration): void {
diff --git a/src/server/authentication/models/current_user_utils.ts b/src/server/authentication/models/current_user_utils.ts
index 20f6cc8c7..052aa54a6 100644
--- a/src/server/authentication/models/current_user_utils.ts
+++ b/src/server/authentication/models/current_user_utils.ts
@@ -11,9 +11,10 @@ import { listSpec } from "../../../new_fields/Schema";
import { ScriptField, ComputedField } from "../../../new_fields/ScriptField";
import { Cast, PromiseValue } from "../../../new_fields/Types";
import { Utils } from "../../../Utils";
-import { InkingControl } from "../../../client/views/InkingControl";
-import { DragManager } from "../../../client/util/DragManager";
+import { ButtonBox } from "../../../client/views/nodes/ButtonBox";
import { nullAudio } from "../../../new_fields/URLField";
+import { DragManager } from "../../../client/util/DragManager";
+import { InkingControl } from "../../../client/views/InkingControl";
export class CurrentUserUtils {
private static curr_id: string;
diff --git a/src/server/index.ts b/src/server/index.ts
index ad9c5886c..01ebf0ac1 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -43,7 +43,7 @@ async function preliminaryFunctions() {
// divide the public directory based on type
await Promise.all(Object.keys(Partitions).map(partition => DashUploadUtils.createIfNotExists(filesDirectory + partition)));
// connect to the database
- await log_execution("attempting to initialize database connection", "connected", Database.tryInitializeConnection);
+ await Database.tryInitializeConnection();
}
/**