(id)
| 97 | return await User.create(user) |
| 98 | }, |
| 99 | async getUser(id) { |
| 100 | await sync() |
| 101 | |
| 102 | const userInstance = await User.findByPk(id) |
| 103 | |
| 104 | return userInstance?.get({ plain: true }) ?? null |
| 105 | }, |
| 106 | async getUserByEmail(email) { |
| 107 | await sync() |
| 108 |