瀏覽代碼

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";