Use unix millis

This commit is contained in:
rxdn 2022-02-17 19:24:06 +00:00
parent 434365ff8e
commit b45e0b6888
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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');
}