File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments