Skip to content

Commit

Permalink
Merge pull request #53 from ably-labs/messages-edited-at
Browse files Browse the repository at this point in the history
rename updated_at to edited_at for messages
  • Loading branch information
AndyTWF authored Jan 24, 2024
2 parents 1ceae20 + caba588 commit 72c18eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ await conversation.messages.delete(msg)
]
},
"created_at": "number",
"updated_at": "number|null",
"edited_at": "number|null",
"deleted_at": "number|null"
}

Expand Down
4 changes: 2 additions & 2 deletions demo/api/conversations/inMemoryDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Message {
mine: Reaction[];
};
created_at: number;
updated_at: number | null;
edited_at: number | null;
deleted_at: number | null;
}

Expand Down Expand Up @@ -69,7 +69,7 @@ export const createMessage = (message: Pick<Message, 'client_id' | 'conversation
mine: [],
},
created_at: Date.now(),
updated_at: null,
edited_at: null,
deleted_at: null,
};
conversationIdToMessages[created.conversation_id].push(created);
Expand Down
2 changes: 1 addition & 1 deletion src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface Message {
mine: Reaction[];
};
created_at: number;
updated_at: number | null;
edited_at: number | null;
deleted_at: number | null;
}

Expand Down

0 comments on commit 72c18eb

Please sign in to comment.