Skip to content

Commit

Permalink
Add seen to groups (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Aug 8, 2022
1 parent daad75e commit c37cbb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/db/user-store.ts
Expand Up @@ -25,7 +25,14 @@ const USER_COLUMNS = [
'created_at',
];

const USER_COLUMNS_PUBLIC = ['id', 'name', 'username', 'email', 'image_url'];
const USER_COLUMNS_PUBLIC = [
'id',
'name',
'username',
'email',
'image_url',
'seen_at',
];

const emptify = (value) => {
if (!value) {
Expand Down
1 change: 1 addition & 0 deletions src/lib/types/group.ts
Expand Up @@ -15,6 +15,7 @@ export interface IGroupUser {
userId: number;
role: string;
joinedAt: Date;
seenAt?: Date;
}

export interface IGroupRole {
Expand Down

0 comments on commit c37cbb1

Please sign in to comment.