Skip to content

Commit 8d470d0

Browse files
committed
Merge branch '472-complete-communications' of https://github.com/sinfo/deck2 into 472-complete-communications
2 parents 72516bd + 1145b54 commit 8d470d0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

frontend/src/components/Communications.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,6 @@ const sendMessage = async () => {
775775
if (!newMessage.value.trim() || !props.postThreadMutation) return;
776776
777777
try {
778-
// Set the thread data for the mutation
779778
// eslint-disable-next-line vue/no-mutating-props
780779
props.postThreadMutation.threadData.value = {
781780
text: newMessage.value,

frontend/src/mutations/companies.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ export const usePostCompanyThreadMutation = defineMutation(() => {
208208
entry: {
209209
id: tempPostId,
210210
member: authStore.decoded?.id,
211-
posted: new Date().toISOString(),
212-
text: threadData.value?.text,
211+
posted: now,
212+
text: threadData.value?.text ?? "",
213+
updated: now,
213214
},
214215
};
215216

frontend/src/mutations/speakers.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ export const usePostSpeakerThreadMutation = defineMutation(() => {
145145
entry: {
146146
id: tempPostId,
147147
member: authStore.decoded?.id,
148-
posted: new Date().toISOString(),
149-
text: threadData.value?.text,
148+
posted: now,
149+
text: threadData.value?.text ?? "",
150+
updated: now,
150151
},
151152
};
152153

0 commit comments

Comments
 (0)