accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript)

This commit is contained in:
Alex Gleason 2024-06-20 05:59:41 +00:00
parent 6bdd29922a
commit 766290bd45

View file

@ -181,7 +181,7 @@ const accountStatusesController: AppController = async (c) => {
const store = await Storages.db(); const store = await Storages.db();
const [user] = await store.query([{ kinds: [30382], authors: [Conf.pubkey], '#d': [pubkey], limit: 1 }], { signal }); const [user] = await store.query([{ kinds: [30382], authors: [Conf.pubkey], '#d': [pubkey], limit: 1 }], { signal });
const names = getTagSet(user?.tags, 'n'); const names = getTagSet(user?.tags ?? [], 'n');
if (names.has('disabled')) { if (names.has('disabled')) {
return c.json([]); return c.json([]);