Skip to content

Commit

Permalink
add acronym to org insert
Browse files Browse the repository at this point in the history
add acronym to the organization import export  functionality
  • Loading branch information
DJensen94 committed Feb 9, 2024
1 parent 0ae2bd7 commit 34de6a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/api/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ class NewOrUpdatedOrganization extends NewOrganizationNonGlobalAdmins {
@IsOptional()
parent?: string;

@IsString()
@IsOptional()
acronym?: string;

@IsString()
@IsOptional()
state?: string;
Expand Down Expand Up @@ -1070,6 +1074,7 @@ export const upsert_org = wrapHandler(async (event) => {
.orUpdate({
conflict_target: ['name'],
overwrite: [
'acronym',
'isPassive',
'country',
'state',
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/Organizations/Organizations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const Organizations: React.FC = () => {
name="organizations"
fieldsToExport={[
'name',
'acronym',
'rootDomains',
'ipBlocks',
'isPassive',
Expand Down

0 comments on commit 34de6a5

Please sign in to comment.