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