Merge branch 'prod' of https://gitlab.com/hanifsalafi/web-humas-polri into prod
This commit is contained in:
commit
4959dbfa2e
|
|
@ -27,7 +27,8 @@ const generateDummyData = () => {
|
|||
|
||||
for (let month = 1; month <= 7; month++) {
|
||||
const userData = [];
|
||||
const daysInMonth = getDaysInMonth(2025, month);
|
||||
const year = new Date().getFullYear();
|
||||
const daysInMonth = getDaysInMonth(year, month);
|
||||
|
||||
for (let day = 1; day <= daysInMonth; day++) {
|
||||
// Buat 2-4 wilayah acak per hari
|
||||
|
|
@ -45,7 +46,7 @@ const generateDummyData = () => {
|
|||
}
|
||||
|
||||
dummy.push({
|
||||
year: 2025,
|
||||
year: year,
|
||||
month,
|
||||
user: userData,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue