Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

11 wiersze
388 B

  1. import { serverFetchJson } from "@/app/utils/fetchUtil";
  2. import { BASE_API_URL } from "@/config/api";
  3. import { cache } from "react";
  4. import { RecordTimesheetInput } from "./actions";
  5. export const fetchTimesheets = cache(async (username: string) => {
  6. return serverFetchJson<RecordTimesheetInput>(`${BASE_API_URL}/timesheets`, {
  7. next: { tags: [`timesheets_${username}`] },
  8. });
  9. });