This comprehensive solution is designed to streamline and optimize your business processes, providing a centralized platform to manage and coordinate various aspects of your enterprise. Whether you are a small business or a large corporation, our ERP software is tailored to meet your organizational needs and enhance overall efficiency.
5
stars
1
forks
source link
Can't create multiple roles with same name but with different divisions. #52
Can't create multiple roles with same name but with different divisions. For example, can't create 2 Heads of Departments under 2 different divisions. Raises a unique key constraint violation.
{
"errors": [
{
"message": "Error creating roles: duplicate key value violates unique constraint \"UQ_ae4578dcaed5adff96595e61660\"",
"path": [
"createRoles"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"stacktrace": [
"GraphQLError: Error creating roles: duplicate key value violates unique constraint \"UQ_ae4578dcaed5adff96595e61660\"",
" at downstreamServiceError (C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\executeQueryPlan.ts:874:12)",
" at C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\executeQueryPlan.ts:579:9",
" at Array.map (<anonymous>)",
" at sendOperation (C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\executeQueryPlan.ts:578:38)",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\executeQueryPlan.ts:447:41",
" at executeNode (C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\executeQueryPlan.ts:369:9)",
" at C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\executeQueryPlan.ts:195:27",
" at C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\gateway\\src\\index.ts:827:28",
" at execute (C:\\Personal\\webwoods\\streamline\\backend\\node_modules\\@apollo\\server\\src\\requestPipeline.ts:540:22)"
],
"serviceName": "auth"
}
}
],
"data": null
}
Can't create multiple roles with same name but with different divisions. For example, can't create 2 Heads of Departments under 2 different divisions. Raises a unique key constraint violation.