This commit is contained in:
Daniel
2022-06-24 11:26:58 +04:30
parent 6e27ed574f
commit 36c7cbd726
5 changed files with 6 additions and 6 deletions
+2 -4
View File
@@ -12,10 +12,8 @@ const addItem = async (
method,
id = nanoid(),
title = "",
date = new Date()
date = new Date().toString()
) => {
const dateCreated = date.toString();
function isValidHttpUrl(string) {
let url;
@@ -38,7 +36,7 @@ const addItem = async (
link: link,
tag: tag,
collection: collection,
date: dateCreated,
date: date,
}),
headers: {
"Content-type": "application/json; charset=UTF-8",