mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 21:58:58 +09:00
fix: Fix type error
This commit is contained in:
parent
d42b15aec7
commit
8c3fd614e5
2
locales/index.d.ts
vendored
2
locales/index.d.ts
vendored
@ -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;
|
||||
|
@ -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()
|
||||
|
@ -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) {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user