From d9f00fb241d8b990e679adfddac6705ae1342e56 Mon Sep 17 00:00:00 2001 From: HARALD Date: Sat, 23 Sep 2023 05:13:55 -0700 Subject: [PATCH 1/2] feat: add default access info --- src/handlers/comment/handlers/query.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/handlers/comment/handlers/query.ts b/src/handlers/comment/handlers/query.ts index 8f78c537f..1926a4b68 100644 --- a/src/handlers/comment/handlers/query.ts +++ b/src/handlers/comment/handlers/query.ts @@ -25,9 +25,15 @@ export const query = async (body: string) => { const repo = payload.repository; if (user) { - const data = await getAllAccessLevels(user, repo.full_name); + let data = await getAllAccessLevels(user, repo.full_name); if (!data) { - return `Error retrieving access for @${user}`; + logger.info(`Access info does not exist for @${user}`); + data = { + multiplier: false, + priority: false, + time: false, + price: false, + }; } const walletInfo = await getWalletInfo(user, id?.toString()); if (!walletInfo?.address) { From 65924f5a8b5b31ee2a517395a96a63d443e4e5d4 Mon Sep 17 00:00:00 2001 From: HARALD Date: Sat, 23 Sep 2023 06:20:17 -0700 Subject: [PATCH 2/2] feat: minor fix --- src/handlers/comment/handlers/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/comment/handlers/query.ts b/src/handlers/comment/handlers/query.ts index 1926a4b68..3334225b3 100644 --- a/src/handlers/comment/handlers/query.ts +++ b/src/handlers/comment/handlers/query.ts @@ -31,7 +31,7 @@ export const query = async (body: string) => { data = { multiplier: false, priority: false, - time: false, + time: true, price: false, }; }