add invite staff
This commit is contained in:
@@ -241,10 +241,7 @@ export class ServiceSchema extends PothosSchema {
|
||||
if (!service) {
|
||||
throw new Error('Service not found');
|
||||
}
|
||||
if (
|
||||
service.status === ServiceStatus.APPROVED ||
|
||||
service.status === ServiceStatus.REJECTED
|
||||
) {
|
||||
if (service.status !== ServiceStatus.PENDING) {
|
||||
throw new Error('Service is already approved or rejected');
|
||||
}
|
||||
// update service status
|
||||
|
||||
Reference in New Issue
Block a user