Default annual renewal to business created date.
Backfill null renewals from created_at and use now when create omits the date. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
92601ae729
commit
4db9c7709d
@@ -376,7 +376,7 @@ export class BusinessAdminService {
|
||||
slug,
|
||||
annualRenewalAt: dto.annualRenewalAt
|
||||
? new Date(dto.annualRenewalAt)
|
||||
: null,
|
||||
: new Date(),
|
||||
oldBusinessId:
|
||||
dto.oldBusinessId !== undefined ? BigInt(dto.oldBusinessId) : undefined,
|
||||
settings: toPrismaJson({
|
||||
|
||||
Reference in New Issue
Block a user