Bug fix.
This commit is contained in:
+2
-4
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user