refactor: change export to const for CONDIZIONI_CACHE_PREFIX and genPdfCondizioni function
This commit is contained in:
parent
280e0ab5c2
commit
5579dfeed0
1 changed files with 2 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ import { getKeydbClient } from "~/utils/keydb";
|
|||
import { TOKEN_CONFIG } from "../auth/configs";
|
||||
|
||||
export const SCHEDA_ANNUNCIO_CACHE_PREFIX = "scheda-annuncio-";
|
||||
export const CONDIZIONI_CACHE_PREFIX = "condizioni-";
|
||||
const CONDIZIONI_CACHE_PREFIX = "condizioni-";
|
||||
export const invalidateCache = async (cacheKey: string) => {
|
||||
const keybd = getKeydbClient();
|
||||
if (keybd) {
|
||||
|
|
@ -120,9 +120,7 @@ export const genPdfCondizioniBase64 = async (
|
|||
return base64Content;
|
||||
};
|
||||
|
||||
export const genPdfCondizioni = async (
|
||||
condizioniId: TestiEStringheStingaId,
|
||||
) => {
|
||||
const genPdfCondizioni = async (condizioniId: TestiEStringheStingaId) => {
|
||||
const keybd = getKeydbClient();
|
||||
const url = `/servizio/condizioni/${condizioniId}?raw=true`;
|
||||
if (keybd) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue