File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,28 +21,28 @@ export const checkUser = async (
2121
2222
2323
24- // 회원탈퇴를 위한 함수
25- export const softDelete = async (
26- user_id : number
27- ) : Promise < boolean > => {
28- const pool = await getPool ( ) ;
24+ // // 회원탈퇴를 위한 함수
25+ // export const softDelete = async (
26+ // user_id : number
27+ // ): Promise<boolean> => {
28+ // const pool = await getPool();
2929
30- console . log ( 'user_id:' , user_id ) ;
30+ // console.log('user_id:', user_id);
3131
32- const query = `
33- SELECT deleted_at FROM user WHERE user_id = ?
34- ` ;
32+ // const query = `
33+ // SELECT deleted_at FROM user WHERE user_id = ?
34+ // `;
3535
36- const result = await pool . query ( query , [ user_id ] ) ;
36+ // const result = await pool.query(query, [user_id]);
3737
38- // deleted_at이 null인 경우 아직 회원탈퇴를 하지 않은 회원임
39- if ( result [ 0 ] === null ) {
40- return false ;
41- }
38+ // // deleted_at이 null인 경우 아직 회원탈퇴를 하지 않은 회원임
39+ // if(result[0] === null) {
40+ // return false;
41+ // }
4242
43- //만약 회원탈퇴한 회원인 경우
44- return true ;
45- } ;
43+ // //만약 회원탈퇴한 회원인 경우
44+ // return true;
45+ // };
4646
4747
4848// signOut을 위한 함수
You can’t perform that action at this time.
0 commit comments