Improve infra as code support (#4867)

* Fix: enable creating of documentstores with the loaders

* Feature: Support posting credentials with a specific id to enabled infrastructure as code
This commit is contained in:
Karl Stoney
2025-07-21 16:49:21 +02:00
committed by GitHub
parent e8c36b6894
commit d77919ba50
2 changed files with 7 additions and 2 deletions
@@ -299,8 +299,8 @@ export class DocumentStoreDTO {
static toEntity(body: any): DocumentStore {
const docStore = new DocumentStore()
Object.assign(docStore, body)
docStore.loaders = '[]'
docStore.whereUsed = '[]'
docStore.loaders = body.loaders ?? '[]'
docStore.whereUsed = body.whereUsed ?? '[]'
// when a new document store is created, it is empty and in sync
docStore.status = DocumentStoreStatus.EMPTY_SYNC
return docStore