feat(260925-bow): neue Benutzer bekommen die laufende Version eingetragen
- UserService.create (Admin-Anlage, beide LDAP-Wege) und AdminSeedService setzen lastSeenReleaseVersion = getRunningRelease(), null auf dev Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { Injectable, Logger, OnApplicationBootstrap } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import * as argon2 from 'argon2';
|
||||
import { GroupsService } from '../groups/groups.service';
|
||||
import { getRunningRelease } from '../health/app-version';
|
||||
import { forTenant } from '../prisma/prisma-tenant.extension';
|
||||
import { prismaErrorCode } from '../prisma/prisma-error';
|
||||
import { PrismaService } from '../prisma/prisma.service';
|
||||
@@ -116,6 +117,10 @@ export class AdminSeedService implements OnApplicationBootstrap {
|
||||
tenantId: tenant.id,
|
||||
mustChangePassword: forceChange,
|
||||
isActive: true,
|
||||
// quick-260925-bow (D-04): laufende freigegebene Version, damit der
|
||||
// Erst-Administrator kein "Was ist neu"-Fenster mit Altlasten sieht;
|
||||
// null auf dev-Staenden.
|
||||
lastSeenReleaseVersion: getRunningRelease(),
|
||||
},
|
||||
});
|
||||
} catch (err: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user