🐛 fix CDN

This commit is contained in:
Flam3rboy
2021-05-10 18:04:02 +02:00
parent dd87cf1dba
commit fdaa277935
4 changed files with 13 additions and 15 deletions
+1 -1
View File
@@ -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
View File
@@ -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));