export default async function getCode(id: string): Promise<GetCode> {
  return { data: await Code.findOne({ _id: id }).lean() }
}