Skip to content

Commit 1d94a84

Browse files
committed
refactor: simplify Notification model's actor property
- Streamlined the actor property in the Notification interface by removing the optional profile_photo_url field. - Enhanced clarity and consistency in the Notification model structure. This change improves the maintainability of the code while preserving the necessary information for notifications.
1 parent c3db2ac commit 1d94a84

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/backend/models/domain-models.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,5 @@ export interface Notification {
293293
payload?: NotificationPayload | null;
294294
read_at?: Date | null;
295295
created_at: Date;
296-
actor?:
297-
| (Pick<User, "id" | "name" | "username" | "profile_photo"> & {
298-
profile_photo_url?: string | null;
299-
})
300-
| null;
296+
actor?: Pick<User, "id" | "name" | "username" | "profile_photo"> | null;
301297
}

0 commit comments

Comments
 (0)