fix: 解决部署问题
This commit is contained in:
9
src/scripts/sync-user.ts
Normal file
9
src/scripts/sync-user.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { User } from '../models/user.ts';
|
||||
|
||||
// User.sync({ alter: true, logging: true }).then(() => {
|
||||
// console.log('sync user done');
|
||||
// });
|
||||
|
||||
User.findOne({ where: { username: 'admin' } }).then((user) => {
|
||||
console.log('user', user);
|
||||
});
|
||||
Reference in New Issue
Block a user