mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-04 08:41:36 +00:00
Fix connection class imports
This commit is contained in:
@@ -24,7 +24,7 @@ import { Config, DiscordApiErrors } from "../util";
|
||||
/**
|
||||
* A connection that can be used to connect to an external service.
|
||||
*/
|
||||
export default abstract class Connection {
|
||||
export abstract class Connection {
|
||||
id: string;
|
||||
settings: { enabled: boolean };
|
||||
states: Map<string, string> = new Map();
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import Connection from "./Connection";
|
||||
import { Connection } from "@spacebar/util";
|
||||
import { ConnectionConfig } from "./ConnectionConfig";
|
||||
import { ConnectionStore } from "./ConnectionStore";
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import Connection from "./Connection";
|
||||
import RefreshableConnection from "./RefreshableConnection";
|
||||
import { Connection } from "./Connection";
|
||||
import { RefreshableConnection } from "./RefreshableConnection";
|
||||
|
||||
export class ConnectionStore {
|
||||
public static connections: Map<string, Connection | RefreshableConnection> =
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
|
||||
import { ConnectedAccount } from "../entities";
|
||||
import { ConnectedAccountCommonOAuthTokenResponse } from "../interfaces";
|
||||
import Connection from "./Connection";
|
||||
import { Connection } from "./Connection";
|
||||
|
||||
/**
|
||||
* A connection that can refresh its token.
|
||||
*/
|
||||
export default abstract class RefreshableConnection extends Connection {
|
||||
export abstract class RefreshableConnection extends Connection {
|
||||
refreshEnabled = true;
|
||||
/**
|
||||
* Refreshes the token for a connected account.
|
||||
|
||||
Reference in New Issue
Block a user