delete test corn
This commit is contained in:
parent
d3b8de26d7
commit
8a96d40b1f
2 changed files with 1 additions and 17 deletions
|
|
@ -28,7 +28,7 @@ async function main() {
|
|||
origin: "*",
|
||||
}),
|
||||
);
|
||||
app.use(express.json({limit: "50mb"}));
|
||||
app.use(express.json({ limit: "50mb" }));
|
||||
app.use(express.urlencoded({ extended: true, limit: "50mb" }));
|
||||
app.use(logMiddleware);
|
||||
app.use("/", express.static("static"));
|
||||
|
|
@ -57,7 +57,6 @@ async function main() {
|
|||
try {
|
||||
const commandController = new CommandController();
|
||||
await commandController.cronjobCommand();
|
||||
await commandController.cronjobTest();
|
||||
} catch (error) {
|
||||
console.error("Error executing function from controller:", error);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7115,19 +7115,4 @@ export class CommandController extends Controller {
|
|||
},
|
||||
});
|
||||
}
|
||||
|
||||
async cronjobTest(@Request() request?: RequestWithUser) {
|
||||
const gender = {
|
||||
name: "เพศทางเลือก",
|
||||
code: "M",
|
||||
isActive: true,
|
||||
createdFullName: "system",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
};
|
||||
|
||||
await this.genderRepo.save(gender);
|
||||
|
||||
return new HttpSuccess();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue