chore: clean up
This commit is contained in:
parent
db2323a24b
commit
cbd8daccca
1 changed files with 2 additions and 17 deletions
|
|
@ -1,16 +1,4 @@
|
|||
import {
|
||||
Body,
|
||||
Controller,
|
||||
Delete,
|
||||
Get,
|
||||
Path,
|
||||
Put,
|
||||
Query,
|
||||
Request,
|
||||
Route,
|
||||
Security,
|
||||
Tags,
|
||||
} from "tsoa";
|
||||
import { Body, Controller, Get, Path, Put, Query, Request, Route, Security, Tags } from "tsoa";
|
||||
import { RequestWithUser } from "../interfaces/user";
|
||||
import prisma from "../db";
|
||||
import { Prisma, RequestWorkStatus } from "@prisma/client";
|
||||
|
|
@ -90,7 +78,6 @@ export class RequestListController extends Controller {
|
|||
});
|
||||
}
|
||||
|
||||
/** @todo */
|
||||
@Put("{requestId}")
|
||||
async updateRequestById(
|
||||
@Request() req: RequestWithUser,
|
||||
|
|
@ -102,9 +89,7 @@ export class RequestListController extends Controller {
|
|||
data: {
|
||||
workStatus: payload.status,
|
||||
request: {
|
||||
update: {
|
||||
flow: payload.attributes,
|
||||
},
|
||||
update: { flow: payload.attributes },
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue