-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Gayatri Kondabathini <[email protected]>
- Loading branch information
1 parent
306ba59
commit 9d0e4b0
Showing
7 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ type EmployeeData = { | |
email: string; | ||
positionId: string; | ||
signatureLink: string; | ||
isAdmin: boolean; | ||
}; | ||
|
||
// update or insert employee to database based on the employee id | ||
|
@@ -65,6 +66,7 @@ async function upsertEmployee(empData: EmployeeData) { | |
position: { | ||
connect: { id: empData.positionId }, | ||
}, | ||
isAdmin: empData.isAdmin, | ||
}, | ||
}); | ||
} | ||
|
@@ -387,6 +389,7 @@ async function main() { | |
email: '[email protected]', | ||
positionId: CHIEF_OF_STAFF_UUID, | ||
signatureLink: DEV_SIGNATURE_LINK, | ||
isAdmin: true, | ||
}, | ||
{ | ||
id: KAI_ZHENG_UUID, | ||
|
@@ -395,6 +398,7 @@ async function main() { | |
email: '[email protected]', | ||
positionId: CHIEF_FIN_OFFICER_UUID, | ||
signatureLink: DEV_SIGNATURE_LINK, | ||
isAdmin: true, | ||
}, | ||
{ | ||
id: ANGELA_WEIGL_UUID, | ||
|
@@ -403,6 +407,7 @@ async function main() { | |
email: '[email protected]', | ||
positionId: AGG_DIR_UUID, | ||
signatureLink: DEV_SIGNATURE_LINK, | ||
isAdmin: true, | ||
}, | ||
{ | ||
id: ANSHUL_SHIRUDE_UUID, | ||
|
@@ -411,6 +416,7 @@ async function main() { | |
email: '[email protected]', | ||
positionId: CHIEF_LEARNING_ENGAGEMENT_UUID, | ||
signatureLink: DEV_SIGNATURE_LINK, | ||
isAdmin: true, | ||
}, | ||
]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ export type CreateEmployeeDto = { | |
email: string; | ||
password: string; | ||
signatureLink: string; | ||
isAdmin: boolean; | ||
}; | ||
|