(userId)
| 137 | return userInstance! |
| 138 | }, |
| 139 | async deleteUser(userId) { |
| 140 | await sync() |
| 141 | |
| 142 | const userInstance = await User.findByPk(userId) |
| 143 | |
| 144 | await User.destroy({ where: { id: userId } }) |
| 145 | |
| 146 | return userInstance |
| 147 | }, |
| 148 | async linkAccount(account) { |
| 149 | await sync() |
| 150 |