mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: memo import
This commit is contained in:
@ -129,12 +129,10 @@ const memoService = {
|
||||
await api.unpinMemo(memoId);
|
||||
},
|
||||
|
||||
importMemo: async (content: string, createdAt: string) => {
|
||||
const createdTs = Math.floor(utils.getTimeStampByDate(createdAt) / 1000);
|
||||
|
||||
importMemo: async (content: string, createdTs: TimeStamp) => {
|
||||
await api.createMemo({
|
||||
content,
|
||||
createdTs,
|
||||
createdTs: Math.floor(utils.getTimeStampByDate(createdTs) / 1000),
|
||||
});
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user