import { DBEType } from "@/models/ErrorType";
import { postServerLog } from "@/services/logs";

export default function ServerResponse(response: ServerResponse) {
  if (!response.operation && response.data) {
    postServerLog({ type: DBEType.ERROR, log: response.data });
  }

  return JSON.stringify(response);
}
