mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-27 15:05:19 +00:00
🐛 fix CDN
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ export class CDNServer extends Server {
|
||||
db: Database;
|
||||
public options: CDNServerOptions;
|
||||
|
||||
constructor(options: CDNServerOptions) {
|
||||
constructor(options: Partial<CDNServerOptions>) {
|
||||
super(options);
|
||||
|
||||
this.db = new MongoDatabase(options?.db);
|
||||
|
||||
+3
-8
@@ -1,14 +1,9 @@
|
||||
import { Server } from "./Server";
|
||||
import { CDNServer } from "./Server";
|
||||
|
||||
const server = new Server();
|
||||
const server = new CDNServer({ db: "" });
|
||||
server
|
||||
.init()
|
||||
.start()
|
||||
.then(() => {
|
||||
console.log("[Server] started on :" + server.options.port);
|
||||
})
|
||||
.catch((e) => console.error("[Server] Error starting: ", e));
|
||||
|
||||
//// server
|
||||
//// .destroy()
|
||||
//// .then(() => console.log("[Server] closed."))
|
||||
//// .catch((e) => console.log("[Server] Error closing: ", e));
|
||||
|
||||
Reference in New Issue
Block a user