diff options
author | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-03-18 01:43:50 -0400 |
---|---|---|
committer | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-03-18 01:43:50 -0400 |
commit | 34f3b837334eb3d4a9416a8397c88cbd1ca421e0 (patch) | |
tree | b94e5e29e1cce19e5a13df8fd1fee280ba8813dd /src/server/authentication/models/user_utils.ts | |
parent | 748412d972bd466a372fcf384448d3a00b42ee9f (diff) |
flashier remote cursors
Diffstat (limited to 'src/server/authentication/models/user_utils.ts')
-rw-r--r-- | src/server/authentication/models/user_utils.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/server/authentication/models/user_utils.ts b/src/server/authentication/models/user_utils.ts deleted file mode 100644 index 1497a4ba4..000000000 --- a/src/server/authentication/models/user_utils.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { DashUserModel } from "./user_model"; -import * as request from 'request' -import { RouteStore } from "../../RouteStore"; -import { ServerUtils } from "../../ServerUtil"; - -export class UserUtils { - private static current: string; - - public static get currentUserId() { - return UserUtils.current; - } - - public static loadCurrentUserId() { - request.get(ServerUtils.prepend(RouteStore.getCurrUser), (error, response, body) => { - if (body) { - UserUtils.current = JSON.parse(body) as string; - } else { - throw new Error("There should be a user! Why does Dash think there isn't one?") - } - }); - } -}
\ No newline at end of file |