Files
website/server/utils/note.ts
T
2026-09-23 11:44:36 +02:00

14 lines
229 B
TypeScript

export interface NoteRow {
id: number
Datum: string | null
Notes: string | null
}
export function toNote(row: NoteRow): Note {
return {
id: row.id,
date: row.Datum ?? '',
text: (row.Notes ?? '').trim()
}
}