Merge branch 'main' into develop

This commit is contained in:
mamoss 2025-07-22 21:22:28 +07:00
commit ee2221b719
2 changed files with 1 additions and 17 deletions

View file

@ -57,7 +57,6 @@ async function main() {
try { try {
const commandController = new CommandController(); const commandController = new CommandController();
await commandController.cronjobCommand(); await commandController.cronjobCommand();
await commandController.cronjobTest();
} catch (error) { } catch (error) {
console.error("Error executing function from controller:", error); console.error("Error executing function from controller:", error);
} }

View file

@ -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();
}
} }