Fixed affiliate seed flush order.

This commit is contained in:
DebaucheryLibrarian 2021-07-12 01:48:01 +02:00
parent 1d686d7e40
commit 65c3053b49
1 changed files with 4 additions and 2 deletions

View File

@ -652,11 +652,13 @@ const campaigns = [
exports.seed = async knex => Promise.resolve()
.then(async () => {
await knex('banners_tags').delete();
await Promise.all([
knex('campaigns').delete(),
knex('banners_tags').delete(),
]);
await Promise.all([
knex('affiliates').delete(),
knex('campaigns').delete(),
knex('banners').delete(),
]);