แก้ path ลบตำแหน่ง

This commit is contained in:
Bright 2024-01-31 15:24:28 +07:00
parent afc97292d3
commit bca7a94f26

View file

@ -246,7 +246,7 @@ export class PositionController extends Controller {
*
* @param {string} id Id
*/
@Delete("{id}")
@Delete("position/{id}")
async delete(@Path() id: string) {
const delPosDict = await this.posDictRepository.findOne({ where: { id } });
if (!delPosDict) {