Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

329 B
Raw Blame
import { eq } from "drizzle-orm";
import db from "../../database";
import { timeEntryTable } from "../../database/schema";

async function getTimeEntry(id: string) {
  const [timeEntry] = await db
    .select()
    .from(timeEntryTable)
    .where(eq(timeEntryTable.id, id));

  return timeEntry;
}

export default getTimeEntry;