@@ -121,7 +121,7 @@ const sendClaimEmails = async (job: JobType, mysql: MySql) => {
121121 ) ;
122122
123123 updates . push (
124- `(${ currentUser . id } , '${ currentUser . email } ', ${ res ? AirdropStatus . EMAIL_SENT : AirdropStatus . EMAIL_ERROR } , '${ dateToSqlString ( new Date ( ) ) } ', '${ currentUser . wallet } ')` ,
124+ `(${ currentUser . id } , '${ currentUser . email } ', ${ res ? AirdropStatus . EMAIL_SENT : AirdropStatus . EMAIL_ERROR } , '${ dateToSqlString ( new Date ( ) ) } ', ${ currentUser . wallet ? ` '${ currentUser . wallet } '` : 'NULL' } )` ,
125125 ) ;
126126 } else if ( currentUser . wallet ) {
127127 try {
@@ -132,11 +132,11 @@ const sendClaimEmails = async (job: JobType, mysql: MySql) => {
132132
133133 if ( mintResponse . success ) {
134134 updates . push (
135- `(${ currentUser . id } , '${ currentUser . email } ', ${ AirdropStatus . AIRDROP_COMPLETED } , null , '${ currentUser . wallet } ')` ,
135+ `(${ currentUser . id } , '${ currentUser . email } ', ${ AirdropStatus . AIRDROP_COMPLETED } , NULL , '${ currentUser . wallet } ')` ,
136136 ) ;
137137 } else {
138138 updates . push (
139- `(${ currentUser . id } , '${ currentUser . email } ', ${ AirdropStatus . AIRDROP_ERROR } , null , '${ currentUser . wallet } ')` ,
139+ `(${ currentUser . id } , '${ currentUser . email } ', ${ AirdropStatus . AIRDROP_ERROR } , NULL , '${ currentUser . wallet } ')` ,
140140 ) ;
141141 }
142142 } catch ( e ) {
@@ -149,7 +149,7 @@ const sendClaimEmails = async (job: JobType, mysql: MySql) => {
149149 ) ;
150150
151151 updates . push (
152- `(${ currentUser . id } , '${ currentUser . email } ', ${ AirdropStatus . AIRDROP_ERROR } , null , '${ currentUser . wallet } ')` ,
152+ `(${ currentUser . id } , '${ currentUser . email } ', ${ AirdropStatus . AIRDROP_ERROR } , NULL , '${ currentUser . wallet } ')` ,
153153 ) ;
154154 }
155155 }
0 commit comments