This commit is contained in:
Benjamin Toby
2025-01-14 16:27:08 +01:00
parent 1564c2811a
commit 81cf010cb5
485 changed files with 1432 additions and 1297 deletions
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,n)=>{Object.defineProperty(n,"M",{enumerable:!0,get:function(){return function e(n,t){return t in n?n[t]:"then"in n&&"function"==typeof n.then?n.then(n=>e(n,t)):"function"==typeof n&&"default"===t?n:void 0}}})},22070:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var i={};t.r(i),t.d(i,{default:()=>l});var r=t(89947),o=t(2706),a=t(96762),u=t(48786);async function l(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});let{social_id:t,social_platform:i}=e.query,r=await (0,u.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[t,i]);t&&t[0]?n.json({social_id:r}):n.json({social_id:null})}let s=(0,a.M)(i,"default"),c=(0,a.M)(i,"config"),d=new r.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:i})},48786:(e,n,t)=>{t.d(n,{A:()=>i});async function i(...e){let n=global.DSQL_DB_CONN;try{if(!n)throw Error("No Connection provided to DB_HANDLER function!");let t=await n.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await n?.end()}}},2706:(e,n)=>{Object.defineProperty(n,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,n,t)=>{e.exports=t(75600)}};var n=require("../../../../webpack-api-runtime.js");n.C(e);var t=n(n.s=22070);module.exports=t})();
"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,o){return o in r?r[o]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,o)):"function"==typeof r&&"default"===o?r:void 0}}})},22070:(e,r,o)=>{o.r(r),o.d(r,{config:()=>u,default:()=>c,routeModule:()=>D});var s={};o.r(s),o.d(s,{default:()=>a});var n=o(89947),t=o(2706),i=o(96762),_=o(48786);async function a(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:o,social_platform:s}=e.query,n=await (0,_.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[o,s]);o&&o[0]?r.json({social_id:n}):r.json({social_id:null})}let c=(0,i.M)(s,"default"),u=(0,i.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:s})},48786:(e,r,o)=>{o.d(r,{A:()=>n});var s=o(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let o=await r.query(...e);return JSON.parse(JSON.stringify(o))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(9973),n=o.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=22070);module.exports=o})();