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,
|
Id: msg.Id,
|
||||||
Type: msg.Type,
|
Type: msg.Type,
|
||||||
Author: msg.Author.Id,
|
Author: msg.Author.Id,
|
||||||
Time: msg.Timestamp.Unix(),
|
Time: msg.Timestamp.UnixMilli(),
|
||||||
Content: msg.Content,
|
Content: msg.Content,
|
||||||
Embeds: msg.Embeds,
|
Embeds: msg.Embeds,
|
||||||
Attachments: msg.Attachments,
|
Attachments: msg.Attachments,
|
||||||
|
@ -101,6 +101,8 @@
|
|||||||
|
|
||||||
notifySuccess(`Form ${newTitle} has been created`);
|
notifySuccess(`Form ${newTitle} has been created`);
|
||||||
newTitle = '';
|
newTitle = '';
|
||||||
|
|
||||||
|
activeFormId = null; // Error thrown from {#each forms.find} if we don't temporarily set this to null?
|
||||||
forms = [...forms, res.data];
|
forms = [...forms, res.data];
|
||||||
activeFormId = res.data.form_id;
|
activeFormId = res.data.form_id;
|
||||||
}
|
}
|
||||||
@ -134,7 +136,7 @@
|
|||||||
let form = getForm(res.data.form_id);
|
let form = getForm(res.data.form_id);
|
||||||
form.inputs = [...form.inputs, res.data];
|
form.inputs = [...form.inputs, res.data];
|
||||||
forms = forms;
|
forms = forms;
|
||||||
inputCreationData = {};
|
inputCreationData = {"style": "1"};
|
||||||
|
|
||||||
notifySuccess('Form input created successfully');
|
notifySuccess('Form input created successfully');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user