use TimeService everywhere in the backend
This commit is contained in:
parent
ed750fd990
commit
6cceca90f9
123 changed files with 550 additions and 285 deletions
|
|
@ -11,6 +11,7 @@ import type { MiUser } from '@/models/User.js';
|
|||
import { IdService } from '@/core/IdService.js';
|
||||
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||
import { bindThis } from '@/decorators.js';
|
||||
import { TimeService } from '@/core/TimeService.js';
|
||||
|
||||
@Injectable()
|
||||
export class RegistryApiService {
|
||||
|
|
@ -20,6 +21,7 @@ export class RegistryApiService {
|
|||
|
||||
private idService: IdService,
|
||||
private globalEventService: GlobalEventService,
|
||||
private readonly timeService: TimeService,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
@ -31,7 +33,7 @@ export class RegistryApiService {
|
|||
.insert()
|
||||
.values({
|
||||
id: this.idService.gen(),
|
||||
updatedAt: new Date(),
|
||||
updatedAt: this.timeService.date,
|
||||
userId: userId,
|
||||
domain: domain,
|
||||
scope: scope,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue