A11yWatch/a11ywatch-core

View on GitHub
src/core/graph/queries/history.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { HistoryController } from "../../controllers";
import { getPayLoad } from "../../utils/query-payload";

export const history = async (_, { ...props }, context) => {
  const userId = getPayLoad(context, props)?.userId;

  return await HistoryController().getHistory({
    userId,
  });
};