fix(logistics): normalize Structure minFrequency defaultValue as string
This commit is contained in:
parent
ba94dfa7da
commit
2dff16a291
2 changed files with 2 additions and 2 deletions
|
|
@ -577,7 +577,7 @@ export const Structures: CollectionConfig = {
|
||||||
name: "minFrequency",
|
name: "minFrequency",
|
||||||
type: "text",
|
type: "text",
|
||||||
required: true,
|
required: true,
|
||||||
defaultValue: 1,
|
defaultValue: "1",
|
||||||
admin: {
|
admin: {
|
||||||
description:
|
description:
|
||||||
"The minimum number of ticks it takes to produce this resource (e.g., '5' would produce this resource, at minimum, every 5 ticks).",
|
"The minimum number of ticks it takes to produce this resource (e.g., '5' would produce this resource, at minimum, every 5 ticks).",
|
||||||
|
|
|
||||||
|
|
@ -2046,7 +2046,7 @@ export const structures_auto_generated_resources = pgTable(
|
||||||
}),
|
}),
|
||||||
minAmount: numeric("min_amount", { mode: "number" }).notNull(),
|
minAmount: numeric("min_amount", { mode: "number" }).notNull(),
|
||||||
maxAmount: numeric("max_amount", { mode: "number" }),
|
maxAmount: numeric("max_amount", { mode: "number" }),
|
||||||
minFrequency: varchar("min_frequency").notNull().default(1),
|
minFrequency: varchar("min_frequency").notNull().default("1"),
|
||||||
maxFrequency: varchar("max_frequency"),
|
maxFrequency: varchar("max_frequency"),
|
||||||
produceChance: numeric("produce_chance", { mode: "number" }).default(100),
|
produceChance: numeric("produce_chance", { mode: "number" }).default(100),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue