Skip to content

Commit

Permalink
Merge pull request ubiquity#805 from wannacfuture/hotfix/default-acce…
Browse files Browse the repository at this point in the history
…ss-info

feat: add default access info
  • Loading branch information
0x4007 authored Sep 23, 2023
2 parents b4fb5b6 + ddad210 commit f41c036
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/handlers/comment/handlers/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: true,
price: false,
};
}
const walletInfo = await getWalletInfo(user, id?.toString());
if (!walletInfo?.address) {
Expand Down

0 comments on commit f41c036

Please sign in to comment.