This commit is contained in:
Truong Vo 2024-08-09 14:13:30 +07:00
parent 1057eec8c0
commit 12d362edc2
2 changed files with 15 additions and 15 deletions

View File

@ -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([

View File

@ -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()