mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
migration rewrite and removed verifications
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
const migration = require('../../../migrations/1510174676_user_status');
|
||||
const UserModel = require('../../../models/user');
|
||||
const helpers = require('../../../services/migration/helpers');
|
||||
|
||||
const chai = require('chai');
|
||||
chai.use(require('chai-datetime'));
|
||||
const { expect } = chai;
|
||||
|
||||
const performMigration = () =>
|
||||
migration.up({ queryBatchSize: 100, updateBatchSize: 100 });
|
||||
migration.up(helpers({ queryBatchSize: 100, updateBatchSize: 100 }));
|
||||
|
||||
describe('migration.1510174676_user_status', () => {
|
||||
describe('active user', () => {
|
||||
|
||||
Reference in New Issue
Block a user