Browse Source

Merge pull request #9835 from nocodb/nc-fix/duplicate-base-bug

fix: Default base creation bug
pull/9838/head
Pranav C 1 month ago committed by GitHub
parent
commit
a31dfcec77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/nocodb/src/services/calendars.service.ts
  2. 4
      packages/nocodb/src/services/forms.service.ts
  3. 4
      packages/nocodb/src/services/galleries.service.ts
  4. 4
      packages/nocodb/src/services/maps.service.ts

4
packages/nocodb/src/services/calendars.service.ts

@ -46,8 +46,8 @@ export class CalendarsService {
type: ViewTypes.CALENDAR,
base_id: model.base_id,
source_id: model.source_id,
created_by: param.user.id,
owned_by: param.ownedBy || param.user.id,
created_by: param.user?.id,
owned_by: param.ownedBy || param.user?.id,
},
model,
);

4
packages/nocodb/src/services/forms.service.ts

@ -54,8 +54,8 @@ export class FormsService {
type: ViewTypes.FORM,
base_id: model.base_id,
source_id: model.source_id,
created_by: param.user.id,
owned_by: param.ownedBy || param.user.id,
created_by: param.user?.id,
owned_by: param.ownedBy || param.user?.id,
},
model,
);

4
packages/nocodb/src/services/galleries.service.ts

@ -47,8 +47,8 @@ export class GalleriesService {
type: ViewTypes.GALLERY,
base_id: model.base_id,
source_id: model.source_id,
created_by: param.user.id,
owned_by: param.ownedBy || param.user.id,
created_by: param.user?.id,
owned_by: param.ownedBy || param.user?.id,
},
model,
);

4
packages/nocodb/src/services/maps.service.ts

@ -42,8 +42,8 @@ export class MapsService {
type: ViewTypes.MAP,
base_id: model.base_id,
source_id: model.source_id,
created_by: param.user.id,
owned_by: param.user.id,
created_by: param.user?.id,
owned_by: param.user?.id,
},
model,
);

Loading…
Cancel
Save