Use unix millis
This commit is contained in:
parent
434365ff8e
commit
b45e0b6888
@ -20,7 +20,7 @@ func FromArchiveMessages(messages []message.Message, ticketId int) Payload {
|
||||
Id: msg.Id,
|
||||
Type: msg.Type,
|
||||
Author: msg.Author.Id,
|
||||
Time: msg.Timestamp.Unix(),
|
||||
Time: msg.Timestamp.UnixMilli(),
|
||||
Content: msg.Content,
|
||||
Embeds: msg.Embeds,
|
||||
Attachments: msg.Attachments,
|
||||
|
@ -101,6 +101,8 @@
|
||||
|
||||
notifySuccess(`Form ${newTitle} has been created`);
|
||||
newTitle = '';
|
||||
|
||||
activeFormId = null; // Error thrown from {#each forms.find} if we don't temporarily set this to null?
|
||||
forms = [...forms, res.data];
|
||||
activeFormId = res.data.form_id;
|
||||
}
|
||||
@ -134,7 +136,7 @@
|
||||
let form = getForm(res.data.form_id);
|
||||
form.inputs = [...form.inputs, res.data];
|
||||
forms = forms;
|
||||
inputCreationData = {};
|
||||
inputCreationData = {"style": "1"};
|
||||
|
||||
notifySuccess('Form input created successfully');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user