refactors

This commit is contained in:
Michael Dausmann
2024-02-25 00:31:55 +11:00
parent 786665e84e
commit 0abc4ec624
2 changed files with 5 additions and 9 deletions

View File

@@ -4,10 +4,6 @@ import { AccountLimitError } from './errors';
import { AccountService } from './account.service';
export namespace NotesService {
export async function getAllNotes() {
return prisma_client.note.findMany();
}
export async function getNoteById(id: number) {
return prisma_client.note.findUniqueOrThrow({ where: { id } });
}