Fixed affiliate seed flush order.
This commit is contained in:
parent
1d686d7e40
commit
65c3053b49
|
@ -652,11 +652,13 @@ const campaigns = [
|
||||||
|
|
||||||
exports.seed = async knex => Promise.resolve()
|
exports.seed = async knex => Promise.resolve()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await knex('banners_tags').delete();
|
await Promise.all([
|
||||||
|
knex('campaigns').delete(),
|
||||||
|
knex('banners_tags').delete(),
|
||||||
|
]);
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
knex('affiliates').delete(),
|
knex('affiliates').delete(),
|
||||||
knex('campaigns').delete(),
|
|
||||||
knex('banners').delete(),
|
knex('banners').delete(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue