feat: ownerOf(event) helper and ownerId in task DTO
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ export interface TaskDto {
|
||||
description: string | null;
|
||||
source: string;
|
||||
consumed: boolean;
|
||||
ownerId: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
@@ -18,6 +19,7 @@ export function toTaskDto(row: TaskRow): TaskDto {
|
||||
description: row.description,
|
||||
source: row.source,
|
||||
consumed: row.consumed,
|
||||
ownerId: row.owner_id,
|
||||
createdAt: new Date(row.created_at).toISOString(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user