Procházet zdrojové kódy

Fixed oauth module issue in backend

Kristian Vos před 4 roky
rodič
revize
e67abe27f2
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 2 1
      backend/logic/app.js
  2. 2 1
      backend/logic/spotify.js

+ 2 - 1
backend/logic/app.js

@@ -7,7 +7,8 @@ import cors from "cors";
 import cookieParser from "cookie-parser";
 import bodyParser from "body-parser";
 import express from "express";
-import { OAuth2 } from "oauth";
+import oauth from "oauth";
+const { OAuth2 } = oauth;
 import CoreClass from "../core";
 
 class AppModule extends CoreClass {

+ 2 - 1
backend/logic/spotify.js

@@ -1,6 +1,7 @@
 import config from "config";
 import async from "async";
-import { OAuth2 } from "oauth";
+import oauth from "oauth";
+const { OAuth2 } = oauth;
 
 import CoreClass from "../core";