fix: Fix type error

This commit is contained in:
Chocolate Pie 2023-07-02 15:56:23 +09:00
parent d42b15aec7
commit 8c3fd614e5
4 changed files with 4 additions and 4 deletions

2
locales/index.d.ts vendored
View file

@ -1065,10 +1065,10 @@ export interface Locale {
"goToMisskey": string;
"additionalEmojiDictionary": string;
"installed": string;
"branding": string;
"additionalPermissionsForFlash": string;
"thisFlashRequiresTheFollowingPermissions": string;
"doYouWantToAllowThisPlayToAccessYourAccount": string;
"branding": string;
"_initialAccountSetting": {
"accountCreated": string;
"letsStartAccountSetup": string;

View file

@ -7,7 +7,7 @@ import { DI } from '@/di-symbols.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';
import { bindThis } from '@/decorators.js';
import { StreamMessages } from '@/server/api/stream/types.js';
import type { FlashToken } from '@/misc/flash-token';
import type { FlashToken } from '@/misc/flash-token.js';
import type { OnApplicationShutdown } from '@nestjs/common';
@Injectable()

View file

@ -8,7 +8,7 @@ import type { App } from '@/models/entities/App.js';
import { CacheService } from '@/core/CacheService.js';
import isNativeToken from '@/misc/is-native-token.js';
import { bindThis } from '@/decorators.js';
import type { FlashToken } from '@/misc/flash-token';
import type { FlashToken } from '@/misc/flash-token.js';
export class AuthenticationError extends Error {
constructor(message: string) {

View file

@ -43,7 +43,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
private cacheService: CacheService,
) {
super(meta, paramDef, async (ps, me) => {
const token = secureRndstr(32, true);
const token = secureRndstr(32);
await this.cacheService.flashAccessTokensCache.set(token, {
user: me,
permissions: ps.permissions,