From bd8224e66f81194549f4a1385feae4516fae93c9 Mon Sep 17 00:00:00 2001 From: rokartur Date: Sun, 26 May 2024 10:08:05 +0200 Subject: [PATCH] resolved #22 free 3 days of premium package during account creation --- backend/bun.lockb | Bin 81928 -> 82623 bytes backend/package.json | 1 + backend/src/routes/oauth/callback/index.ts | 10 ++++++++++ 3 files changed, 11 insertions(+) diff --git a/backend/bun.lockb b/backend/bun.lockb index 6bcabc871a467690fd0148cbfc94b108bd34136d..b3bc03a90cd5aa10dcef07d57b19f176fd19d9e7 100755 GIT binary patch delta 12962 zcmeHNdsvj!)_?cND1(QqsEor+RCGk{;BZj}R8$;EtvnN=DGI_QSHTP3z`Q|igN9?1=?prjElvn34Xl~bxQthe`BFzO6IkIJ(UyI-0spezvFYG7p}P-+D}Lv zj@4NGG&c{|O!pVXHMQM4FV;xXA0(;#TTmTnVL@?8_T;SM!fe@Gdb8%NU)g>KNpgpB zdP!D(CelBG>1$kNdC6bgo zWr8gO7H~B?+enft^sCSU1E|?aDL*eOZ(^||l}R5Xfm_!N)D5(xIM+5F89PAc zj8353iy1KT2Tcd{15LCS7y#-E`GKP(bpbsC%68lA^kq=Cp9ks#I?+xCgZiTW@?K!P zq3{6h1p2@~7vCAqRKgE`t zDedg4G`tbC9rQ1Oazm=@>7{mgqFw*EJw352#-9y)A_1)|?_f840Ec2U%bP(t{Rk)* z{1GVIzYWSG^@3eq2+DTFpltUfXnW8hc72px?{Ak~KskS*|KzNa5?j{fNc572W=27# z+~Wzolp#AzH4Yt(ss~Fma&v9PCDJInc3_C&nAM;>UL)wBLw9#msFHVdm@*&MkxuJ3 zK0RDt2LX%5_k-`xcb-IR*IzoFOM8|0x@2 zaFn9=jiP6?zGZ6DZ237^lWir%w)}~?w(OjeW|(mYlhAaYYccjNgxYDKowftz5!8V4 zl(-nAc%prbLZ^W8$ejV@W_ev7Gq{p8=B3q3K2ygCet3dJIkd!()! z?6f7Ng;~YgB*n?Xs-LmhHvCV$R%}qC7d+N29QW|fzd0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A%h?lN*etV90l`;gJT}WXR`h!9ATxa>gOXzO4qV5;t@Y<1o(ZGk#oz6aSCY&$$ z)k&K!nnO;8t8pvrJpW>wBTc_S+`5<$7kAvo;I*jeM{`&0u3;;4uZ*)(D%vRFRSqfb z65o*{n^&xf+mz@n5CR;=ani9i^xcoaM(x($z@)uVA)x_pdJKH2^{v2eimi54@D*ds z$NTC>4e=OhmkDDYSvumw22FGxO)pCSyTPbkKHMT*>>W|BOZMmssQm8+F@x5?%6)gy z^;-3`aTk5sf9U6s^A;Cj_0joGk*V z{}qF1NjX={_^h=8c?H!XA58k6%%TA;yI}~??p`_ue3O=bx#qZM#auJdgrC;q!cg0* zW_(3^_*YMcJam^Mf9>nm|x-N!3y&5Mn>B`kKVO*E;bEwdv zY~;0mc;SEdngK7EDL)(VqJA9wCc1UaV9dlK<}EMPEi>m8jQUy`f%1^%PP6~#&PHAf z)*Ug^?(4xu?QZ95=chy!54$qg?Fpu}n(kds!#t$jNK?En5q+rnO{-D6pZSMRKCnIQ zyc>xcW|NtJ+Pp{OZ<_IWZskowSM9duta}??xfR?T$C~m32&2~SbAEr}->HQr z#?+NJCHBNB5=?P167MO4Xhqgr2IB*_j$+k|@}Ym=)=~7lbpjhG>^8k}_YwSHq$79ZT2|l@^AHyBtc3X8VshiV{&!TX0vmO@*K^&JdjSnU V{Ir4aO app.get( @@ -52,6 +53,15 @@ export default (app: ElysiaApp) => username: githubData.login, email: githubData.email || '', profilePictureUrl: githubData.avatar_url, + subscriptionExpirationDate: moment + .utc() + .add(3, 'd') + .set('hour', 0) + .set('minute', 0) + .set('second', 0) + .set('millisecond', 0) + .toDate() + .toISOString(), }) .returning({ id: users.id })