Skip to content

Commit

Permalink
fix import modules (#4276)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Buslaev <[email protected]>
  • Loading branch information
artembuslaev authored Oct 18, 2024
1 parent a52ec7b commit a3875b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guardian-service/src/api/module.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ export async function modulesAPI(logger: PinoLogger): Promise<void> {
delete module.messageId;
delete module.createDate;
module.uuid = GenerateUUIDv4();
module.creator = owner;
module.owner = owner;
module.status = 'DRAFT';
module.creator = owner.creator;
module.owner = owner.owner;
module.status = ModuleStatus.DRAFT;
module.type = 'CUSTOM';
if (await DatabaseServer.getModule({ name: module.name })) {
module.name = module.name + '_' + Date.now();
Expand Down

0 comments on commit a3875b6

Please sign in to comment.