Skip to content

Commit

Permalink
♻️ move purple_hex from constant to color
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshya-dhariwal committed Feb 22, 2022
1 parent dadf6af commit 733e665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/notifications/notifications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
notificationUserSchema,
} from "./notifications.schema";
import { MessageEmbed } from "discord.js";
import { CONSTANTS } from "../../utils/constants";
import { COLORS, CONSTANTS } from "../../utils/constants";

export const getDiscordID = async (emailArray: Array<string>) => {
const db = (await getDbClient()).db().collection(`jack-notifications`);
Expand Down Expand Up @@ -37,7 +37,7 @@ export const notificationsService = async (data: notificationsRequest) => {
notificationArray.userIDArray.map(async (userDetails) => {
try {
const embed = new MessageEmbed()
.setColor(CONSTANTS.PURPLE_COLOR_HEX)
.setColor(COLORS.PURPLE_HEX)
.setTitle(data.title)
.setDescription(data.body)
.setThumbnail(CONSTANTS.SRMKZILLA_GRADIENT_LOGO)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ export const CONSTANTS = {
"https://jack.srmkzilla.net/assets/srmkzilla_logo_white_mono.png",
SRMKZILLA_GRADIENT_LOGO:
"https://mozohack-mozofest-2022.s3.ap-south-1.amazonaws.com/mozohack/srmkzlla_logo.png",
PURPLE_COLOR_HEX: "#7289da",
certificateUserDirectMessage: (eventName: string, username: string) =>
new MessageEmbed()
.setTitle(`${eventName} Certificates`)
Expand Down Expand Up @@ -472,6 +471,7 @@ export const COLORS = {
LEAVE_VOICE: "#ff0066",
MOVE_VOICE: "#00ccff",
REACTION_ROLE: "#bf00ff",
PURPLE_HEX: "#7289da",
};

export const randomMemesEndpoint = () => {
Expand Down

0 comments on commit 733e665

Please sign in to comment.