This commit is contained in:
rca 2024-07-15 23:22:41 +09:00
parent 68c09cbf2d
commit 5f5bd9e4ba

View File

@ -14,7 +14,7 @@ async function updateUser(user: User): Promise<User> {
});
}
async function generateLoginCode(parentId: string): Promise<number> {
async function generateParentLoginCode(parentId: string): Promise<number> {
const loginCode: number = Math.floor(10000000 + Math.random() * 90000000);
logger.debug(`Generated login code: ${loginCode}`);
// cron.schedule('0 0 * * *', () => {
@ -35,4 +35,4 @@ async function generateLoginCode(parentId: string): Promise<number> {
});
}
export { updateUser, generateLoginCode};
export { updateUser, generateParentLoginCode };