Update the code format.
This commit is contained in:
@@ -64,7 +64,7 @@ defmodule DecentralisedBookIndex.Generators do
|
||||
authors =
|
||||
opts[:authors] ||
|
||||
for id <- 1..2 do
|
||||
generate(author(actor: actor)) #.id
|
||||
generate(author(actor: actor))
|
||||
end
|
||||
|
||||
count = min(opts[:count], length(authors))
|
||||
@@ -140,7 +140,7 @@ defmodule DecentralisedBookIndex.Generators do
|
||||
Metadata.Publisher,
|
||||
:create,
|
||||
defaults: [
|
||||
name: sequence(:name, &"Publisher #{&1}"),
|
||||
name: sequence(:name, &"Publisher #{&1}")
|
||||
],
|
||||
overrides: opts,
|
||||
actor: actor
|
||||
@@ -194,12 +194,12 @@ defmodule DecentralisedBookIndex.Generators do
|
||||
description: sequence(:description, &"Description #{&1}"),
|
||||
language: sequence(:language, &"Language #{&1}"),
|
||||
format: sequence(:format, &"Format #{&1}"),
|
||||
page_count: sequence(:page_count, &(abs(&1)+1)),
|
||||
page_count: sequence(:page_count, &(abs(&1) + 1)),
|
||||
published: sequence(:published, &Date.add(~D[2025-03-04], &1)),
|
||||
bids: bids,
|
||||
author_roles: author_roles,
|
||||
publisher_id: publisher_id,
|
||||
book_editions_registry_id: book_editions_registry_id,
|
||||
book_editions_registry_id: book_editions_registry_id
|
||||
],
|
||||
overrides: opts,
|
||||
actor: actor
|
||||
|
||||
Reference in New Issue
Block a user