decentralised message store

refactor: don't return if empty

if it goes wrong, just rely on it throwing ig

serenity 170a9fcf bc5902ee

Changed files
-5
src
lib
utils
-5
src/lib/utils/gmstn.ts
···
.from(messagesTable)
.where(eq(messagesTable.channelAtUri, channelAtUriString))
.limit(100);
-
if (messages.length === 0)
-
return {
-
ok: false,
-
error: "Channel either has no messages, or the provided channel at uri is wrong.",
-
};
return { ok: true, data: messages };
};