Lab Case Detail datatset load faliure fixed.
This commit is contained in:
@@ -53,7 +53,11 @@ COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
# Windows git/build context may use CRLF; strip before chmod (fixes dumb-init "No such file or directory").
|
||||
RUN sed -i 's/\r$//' /usr/local/bin/docker-entrypoint.sh && chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN mkdir -p /app/logs && \
|
||||
# AdminJS writes/serves the custom-components bundle here. Avoid the default
|
||||
# ".adminjs" path — Express sendFile + nosniff can 500 on dot-directories.
|
||||
ENV ADMIN_JS_TMP_DIR=/app/adminjs-tmp
|
||||
|
||||
RUN mkdir -p /app/logs /app/adminjs-tmp && \
|
||||
chown -R dyolink:nodejs /app
|
||||
|
||||
USER dyolink
|
||||
|
||||
@@ -76,9 +76,7 @@ export function buildAdminResources(prisma: PrismaService): AdminResource[] {
|
||||
resource(prisma, 'Permission', {
|
||||
navigation: { name: 'Orgs & access', icon: 'Settings' },
|
||||
}),
|
||||
resource(prisma, 'MembershipPermission', {
|
||||
navigation: { name: 'Orgs & access', icon: 'Settings' },
|
||||
}),
|
||||
// MembershipPermission omitted: composite @@id — AdminJS list 500s without a single id
|
||||
resource(prisma, 'Feature', {
|
||||
navigation: { name: 'Orgs & access', icon: 'Settings' },
|
||||
}),
|
||||
@@ -119,9 +117,8 @@ export function buildAdminResources(prisma: PrismaService): AdminResource[] {
|
||||
resource(prisma, 'LabCaseLine', {
|
||||
navigation: { name: 'Lab', icon: 'Archive' },
|
||||
}),
|
||||
resource(prisma, 'LabCaseDetail', {
|
||||
navigation: { name: 'Lab', icon: 'Archive' },
|
||||
}),
|
||||
// LabCaseDetail omitted: composite @@id — AdminJS list 500s without a single id
|
||||
// (inspect LabCase + TreatmentDetail instead)
|
||||
resource(prisma, 'LabCaseSend', {
|
||||
navigation: { name: 'Lab', icon: 'Archive' },
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user