@@ -31,9 +31,29 @@ export const register = async (request: Request, response: any) => {
3131 const job = {
3232 type : "sendEmail" ,
3333 to : email ,
34- subject : 'Wellcome back' ,
34+ subject : `👋 Welcome Back ${ existingUsers . name } ` ,
35+ text :`Hi there 👋
36+
37+ ${ existingUsers . name } Welcome back to ByteBox! ☁️
38+ We missed you 😊
39+
40+ Your secure cloud space is still here, ready and waiting for you. Jump back in to access, upload, and share your files anytime, anywhere.
41+
42+ ✨ Here’s what you can do right now:
43+ 📂 View your saved files
44+ ⬆️ Upload new documents, photos, or videos
45+ 🔗 Share files with secure links
46+ 🔐 Enjoy fast & safe storage
47+
48+ 🚀 Continue where you left off:
49+ 👉 Log in to your ByteBox account
50+
51+ If you need any help or have questions, just reply to this email — we’re always happy to assist 💬
52+
53+ Glad to have you back!
54+ Team ByteBox
55+ Secure • Fast • Simple ☁️`
3556 } ;
36- console . log ( 'job added' )
3757 await redis . lpush ( "jobs" , JSON . stringify ( job ) )
3858 return response . status ( 202 ) . json ( {
3959 message : "email already exists, Please Sign-in" ,
@@ -55,7 +75,6 @@ export const register = async (request: Request, response: any) => {
5575 upsert : false ,
5676 } ) ;
5777 if ( error ) {
58- console . log ( uniqueFilename , process . env . SUPABASE_BUCKET )
5978 response . status ( 500 ) . json ( {
6079 message : "Server error" ,
6180 success : false ,
@@ -87,6 +106,36 @@ export const register = async (request: Request, response: any) => {
87106 success : false ,
88107 } ) }
89108 const token = await user . generateToken ( )
109+ const job = {
110+ type : "sendEmail" ,
111+ to : email ,
112+ subject : '🎉 Your ByteBox is Ready!' ,
113+ text :`Hi there 👋
114+
115+ Welcome to ByteBox – your personal space in the cloud ☁️
116+
117+ We’re excited to have you onboard! 🎉
118+ Your account is now ready, and you can start uploading, organizing, and sharing files securely anytime, anywhere.
119+
120+ 🗂️ What you can do with ByteBox:
121+ • Upload photos, videos, documents & more
122+ • Access files from any device 📱💻
123+ • Share files instantly with secure links 🔐
124+ • Fast, smooth & safe storage experience
125+
126+ ✨ Get started now:
127+ 👉 Log in and upload your first file
128+
129+ If you ever need help, just reply to this email — we’re always happy to support you 😊
130+
131+ Thanks for choosing ByteBox
132+ Let’s store smarter, together 🚀
133+
134+ Best regards,
135+ Team ByteBox
136+ ☁️ Secure • Fast • Simple`
137+ } ;
138+ await redis . lpush ( "jobs" , JSON . stringify ( job ) )
90139 return response . status ( 201 ) . json ( {
91140 message : "User created successfully" ,
92141 user,
0 commit comments