mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-25 16:14:02 +00:00
fix typo
This commit is contained in:
parent
68c09cbf2d
commit
5f5bd9e4ba
|
@ -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 };
|
||||
|
|
Loading…
Reference in New Issue
Block a user