Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

11 rader
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. });