()
| 72 | } |
| 73 | let _synced = false |
| 74 | const sync = async () => { |
| 75 | if (process.env.NODE_ENV !== "production" && synchronize && !_synced) { |
| 76 | const syncOptions = |
| 77 | typeof synchronize === "object" ? synchronize : undefined |
| 78 | |
| 79 | await Promise.all([ |
| 80 | User.sync(syncOptions), |
| 81 | Account.sync(syncOptions), |
| 82 | Session.sync(syncOptions), |
| 83 | VerificationToken.sync(syncOptions), |
| 84 | ]) |
| 85 | |
| 86 | _synced = true |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | Account.belongsTo(User, { onDelete: "cascade" }) |
| 91 | Session.belongsTo(User, { onDelete: "cascade" }) |
no outgoing calls
no test coverage detected