.
This commit is contained in:
parent
eed5ac24d5
commit
c25aa353c7
3 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import { cacheAuDrive } from "./plugins/node-cache";
|
|||
import { uuidV3 } from "./plugins/uuid";
|
||||
export const tx_vinculos__listar = "vinculos__listar";
|
||||
export const listarVinculos = async ({ token, url_api_autenticacao, desativarCache, }) => {
|
||||
debugger;
|
||||
const chaveCache = uuidV3({ token, url_api_autenticacao });
|
||||
// Buscar promeiro no cache
|
||||
if (!desativarCache) {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ const node_cache_1 = require("./plugins/node-cache");
|
|||
const uuid_1 = require("./plugins/uuid");
|
||||
exports.tx_vinculos__listar = "vinculos__listar";
|
||||
const listarVinculos = async ({ token, url_api_autenticacao, desativarCache, }) => {
|
||||
debugger;
|
||||
const chaveCache = (0, uuid_1.uuidV3)({ token, url_api_autenticacao });
|
||||
// Buscar promeiro no cache
|
||||
if (!desativarCache) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ export const listarVinculos = async ({
|
|||
/** por padrão será 10 segundos */
|
||||
desativarCache?: boolean
|
||||
}): Promise<tipoResposta<tipo_retorno_vinculo_listas[]>> => {
|
||||
debugger
|
||||
const chaveCache = uuidV3({ token, url_api_autenticacao })
|
||||
|
||||
// Buscar promeiro no cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue