Skip to content

Commit

Permalink
email notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
KambangSinclaire committed May 17, 2024
1 parent e29b404 commit 3fb9199
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/common/constants/kingsschool-messages.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export const KingsSchoolEmailTemplates = {
return `Dear <strong>${data.username}</strong>,<br><br>
We're thrilled to welcome you to the Kingsschool Software community!<br><br>
Your admin account has been successfully created, and you're now ready to manage your Institution's software needs with ease.<br><br>
Your admin account has been successfully created, and you're now ready to manage ${data?.school?.name} with ease.<br><br>
Kingsschool empowers you to take control of your software fleet, streamline educational processes, and boost productivity.<br><br>
Kingsschool empowers you to streamline educational processes, and boost productivity.<br><br>
As an admin, you have access to powerful features like:<br><br>
=> <strong>User management:</strong> Add, edit, and remove users, assign permissions, and manage user groups.<br><br>
=> <strong>Schhol Grading/Reports management:</strong> Manage learning grading system and report card generation<br><br>
=> <strong>License management:</strong> Allocate and track software licenses, ensuring optimal resource utilization.<br><br>
Expand Down
2 changes: 2 additions & 0 deletions src/models/interfaces/user.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export interface IUser {
permissions?: string[];
// This field is needed here because the frontend sends it during account creation
owner_id?: string;
school?: any;
academicYear?: any;
organization?: any;
org_branch_id?: string;
}
6 changes: 3 additions & 3 deletions src/modules/notifications/notifications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export class NotificationsService {
}
function getMessageDestination(payload: any) {
const templates = {
kingsschoolAdminAccount: KingsSchoolEmailTemplates.adminAccount(payload.data),
kingscorpAdminAccount: KingsCorpEmailTemplates.adminAccount(payload.data),
kingscorpPersonnelAccount: KingsCorpEmailTemplates.personnelAccount(payload.data, payload.organization),
kingsschoolAdminAccount: KingsSchoolEmailTemplates.adminAccount(payload),
kingscorpAdminAccount: KingsCorpEmailTemplates.adminAccount(payload),
kingscorpPersonnelAccount: KingsCorpEmailTemplates.personnelAccount(payload, payload.organization),
kingscorpResetPassword: KingsCorpEmailTemplates.resetPassword(payload.data)
}
return {
Expand Down

0 comments on commit 3fb9199

Please sign in to comment.