fix
This commit is contained in:
		
							parent
							
								
									1057eec8c0
								
							
						
					
					
						commit
						12d362edc2
					
				| 
						 | 
					@ -290,7 +290,7 @@ class TicketController extends Controller
 | 
				
			||||||
        // Send notification email to users
 | 
					        // Send notification email to users
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($action == "confirm") {
 | 
					        if ($action == "confirm") {
 | 
				
			||||||
            dd($results);
 | 
					            // dd($results);
 | 
				
			||||||
            foreach ($results as $result) {
 | 
					            foreach ($results as $result) {
 | 
				
			||||||
                list($year, $month, $day) = explode('-', $result['date']);
 | 
					                list($year, $month, $day) = explode('-', $result['date']);
 | 
				
			||||||
                Notes::create([
 | 
					                Notes::create([
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -306,20 +306,20 @@ const Timekeeping = () => {
 | 
				
			||||||
      console.log(error)
 | 
					      console.log(error)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  const handleUpdateCacheMonth = async () => {
 | 
					  // const handleUpdateCacheMonth = async () => {
 | 
				
			||||||
    try {
 | 
					  //   try {
 | 
				
			||||||
      await update(
 | 
					  //     await update(
 | 
				
			||||||
        updateCacheMonth,
 | 
					  //       updateCacheMonth,
 | 
				
			||||||
        {
 | 
					  //       {
 | 
				
			||||||
          year: date.year,
 | 
					  //         year: date.year,
 | 
				
			||||||
          month: date.month,
 | 
					  //         month: date.month,
 | 
				
			||||||
        },
 | 
					  //       },
 | 
				
			||||||
        getTimeSheet,
 | 
					  //       getTimeSheet,
 | 
				
			||||||
      )
 | 
					  //     )
 | 
				
			||||||
    } catch (error) {
 | 
					  //   } catch (error) {
 | 
				
			||||||
      console.log(error)
 | 
					  //     console.log(error)
 | 
				
			||||||
    }
 | 
					  //   }
 | 
				
			||||||
  }
 | 
					  // }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  useEffect(() => {
 | 
					  useEffect(() => {
 | 
				
			||||||
    getTimeSheet()
 | 
					    getTimeSheet()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue