feat: add language support
This commit is contained in:
@@ -108,14 +108,16 @@ export const upsertNote = (note: Note) => {
|
||||
createdAt,
|
||||
did,
|
||||
rkey,
|
||||
discoverable
|
||||
discoverable,
|
||||
language
|
||||
)
|
||||
VALUES (?, ?, ?, ?, ?, ?)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?)
|
||||
ON CONFLICT(did, rkey)
|
||||
DO UPDATE SET
|
||||
title = excluded.title,
|
||||
publishedAt = excluded.publishedAt,
|
||||
discoverable = excluded.discoverable
|
||||
discoverable = excluded.discoverable,
|
||||
language = excluded.language
|
||||
`,
|
||||
note.title,
|
||||
note.publishedAt ? new Date(note.publishedAt).toISOString() : now,
|
||||
@@ -123,5 +125,6 @@ export const upsertNote = (note: Note) => {
|
||||
note.did,
|
||||
note.rkey,
|
||||
note.discoverable !== false ? 1 : 0,
|
||||
note.language,
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user