Skip to content

Commit

Permalink
Push fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DaRealFrost authored Jul 28, 2024
1 parent e9ea5f1 commit 5afe6bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/common/handlers/user_profile_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export async function userProfileHandler(
return;
}
const db_find_cursor_products = await go_mongo_db.find(db_database_name, db_products_collection_name, {
viewable: true, // only fetch viewable products
// Only fetch purchasable/viewable products

Check failure on line 85 in src/common/handlers/user_profile_handler.ts

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
viewable: true,

Check failure on line 86 in src/common/handlers/user_profile_handler.ts

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
purchasable: true,

Check failure on line 87 in src/common/handlers/user_profile_handler.ts

View workflow job for this annotation

GitHub Actions / lint (16.x)

Trailing spaces not allowed
}, {
projection: {
'_id': false,
Expand Down
6 changes: 1 addition & 5 deletions src/custom_interactions/chat_input/add_user_identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default new CustomInteraction({
},
metadata: {
required_run_context: CustomInteractionRunContext.Guild,
required_access_level: CustomInteractionAccessLevel.Staff,
required_access_level: CustomInteractionAccessLevel.Admins,
},
handler: async (discord_client, interaction) => {
if (!interaction.isChatInputCommand()) return;
Expand Down Expand Up @@ -114,10 +114,6 @@ export default new CustomInteraction({
}

// create the update filter based on the provided information
const user_update_filter = {
'identity.discord_user_id': new_discord_id,
'identity.roblox_user_id': new_roblox_id,
};
const db_user_discord_identity_update_filter = {
'identity.discord_user_id': new_discord_id,
};
Expand Down

0 comments on commit 5afe6bd

Please sign in to comment.