Преглед на файлове

Fixed oauth module issue in backend

Kristian Vos преди 4 години
родител
ревизия
e67abe27f2
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  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";