fix: remove db-journal from git
This commit is contained in:
@@ -80,6 +80,14 @@ export const saveCursor = (cursor: number) => {
|
||||
|
||||
export const upsertNote = (note: Note) => {
|
||||
const now = new Date().toISOString();
|
||||
const params = [
|
||||
note.title,
|
||||
note.publishedAt ? new Date(note.publishedAt).toISOString() : now,
|
||||
note.createdAt ? new Date(note.createdAt).toISOString() : now,
|
||||
note.did,
|
||||
note.rkey,
|
||||
];
|
||||
console.log(`[db] upsertNote params: ${JSON.stringify(params)}`);
|
||||
|
||||
db.query(
|
||||
`
|
||||
@@ -96,12 +104,6 @@ export const upsertNote = (note: Note) => {
|
||||
title = excluded.title,
|
||||
publishedAt = excluded.publishedAt
|
||||
`,
|
||||
[
|
||||
note.title,
|
||||
note.publishedAt ? new Date(note.publishedAt).toISOString() : now,
|
||||
note.createdAt ? new Date(note.createdAt).toISOString() : now,
|
||||
note.did,
|
||||
note.rkey,
|
||||
],
|
||||
params,
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user