WIP - Persistent storage

This commit is contained in:
Andras Bacsai
2022-03-20 23:51:50 +01:00
parent 1281a0f7e4
commit 2320ab0dfc
19 changed files with 261 additions and 38 deletions

View File

@@ -134,7 +134,8 @@ export async function getApplication({ id, teamId }) {
destinationDocker: true,
settings: true,
gitSource: { include: { githubApp: true, gitlabApp: true } },
secrets: true
secrets: true,
persistentStorage: true
}
});
@@ -268,3 +269,7 @@ export async function createBuild({
}
});
}
export async function getPersistentStorage(id) {
return await prisma.applicationPersistentStorage.findMany({ where: { applicationId: id } });
}