feat: make accepting status as optional
This commit is contained in:
parent
870bd8ac3a
commit
aa622afc9f
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ export class RequestListController extends Controller {
|
||||||
async updateRequestWorkStepStatus(
|
async updateRequestWorkStepStatus(
|
||||||
@Path() requestWorkId: string,
|
@Path() requestWorkId: string,
|
||||||
@Path() step: number,
|
@Path() step: number,
|
||||||
@Body() payload: { requestWorkStatus: RequestWorkStatus; attributes?: Record<string, any> },
|
@Body() payload: { requestWorkStatus?: RequestWorkStatus; attributes?: Record<string, any> },
|
||||||
) {
|
) {
|
||||||
const record = await prisma.requestWorkStepStatus.upsert({
|
const record = await prisma.requestWorkStepStatus.upsert({
|
||||||
where: {
|
where: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue