add invite staff
This commit is contained in:
@@ -215,10 +215,7 @@ export class CenterSchema extends PothosSchema {
|
||||
throw new Error('Center not found');
|
||||
}
|
||||
// check if center is already approved or rejected
|
||||
if (
|
||||
center.centerStatus === CenterStatus.APPROVED ||
|
||||
center.centerStatus === CenterStatus.REJECTED
|
||||
) {
|
||||
if (center.centerStatus !== CenterStatus.PENDING) {
|
||||
throw new Error('Center is already approved or rejected');
|
||||
}
|
||||
// find center owner and promote to staff
|
||||
|
||||
Reference in New Issue
Block a user