Lab Case Detail datatset load faliure fixed.
All checks were successful
Production — tag build, push, deploy / build-and-push (push) Successful in 26m42s
Production — tag build, push, deploy / deploy (push) Successful in 13m27s

This commit is contained in:
2026-09-07 20:41:18 +03:30
parent 0d2c279f4b
commit b1bcfc69e4
9 changed files with 20 additions and 9 deletions

View File

@@ -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

View File

@@ -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' },
}),