Compare commits
2 Commits
d1129b3b15
...
248b35d3ca
Author | SHA1 | Date | |
---|---|---|---|
248b35d3ca | |||
2f0b4f8d96 |
@ -150,10 +150,10 @@ function useGoToEvent(props, options) {
|
||||
|
||||
function Reaction({ ev }: { ev: TaggedNostrEvent }) {
|
||||
const reactedToTag = ev.tags.find((tag: string[]) => tag[0] === "e");
|
||||
const link = NostrLink.fromTag(reactedToTag);
|
||||
if (!reactedToTag) {
|
||||
if (!reactedToTag?.length) {
|
||||
return null;
|
||||
}
|
||||
const link = NostrLink.fromTag(reactedToTag);
|
||||
return (
|
||||
<div className="note card">
|
||||
<div className="text-gray-medium font-bold">
|
||||
|
@ -15,6 +15,12 @@ const migrations = [
|
||||
async function migrate(relay: SqliteRelay) {
|
||||
if (!relay.db) throw new Error("DB must be open");
|
||||
|
||||
relay.db.exec(
|
||||
"CREATE TABLE IF NOT EXISTS __migration (\
|
||||
version INTEGER PRIMARY KEY, \
|
||||
migrated_at INTEGER \
|
||||
)",
|
||||
);
|
||||
const res = relay.db.exec("SELECT MAX(version) FROM __migration", { returnValue: "resultRows" });
|
||||
let currentVersion = (res[0][0] as number | undefined) ?? 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user