fix: api /super-admin/{id} memory cache

This commit is contained in:
Warunee Tamkoo 2026-01-28 18:26:03 +07:00
parent 7c70229579
commit 1a324af483
5 changed files with 112 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import { NextFunction, Request, Response } from "express";
import { Client } from "@elastic/elasticsearch";
import { logMemoryStore } from "../utils/log-memory-store";
import { logMemoryStore } from "../utils/LogMemoryStore";
if (!process.env.ELASTICSEARCH_INDEX) {
throw new Error("Require ELASTICSEARCH_INDEX to store log.");