mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-13 22:28: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;
|
"goToMisskey": string;
|
||||||
"additionalEmojiDictionary": string;
|
"additionalEmojiDictionary": string;
|
||||||
"installed": string;
|
"installed": string;
|
||||||
|
"branding": string;
|
||||||
"additionalPermissionsForFlash": string;
|
"additionalPermissionsForFlash": string;
|
||||||
"thisFlashRequiresTheFollowingPermissions": string;
|
"thisFlashRequiresTheFollowingPermissions": string;
|
||||||
"doYouWantToAllowThisPlayToAccessYourAccount": string;
|
"doYouWantToAllowThisPlayToAccessYourAccount": string;
|
||||||
"branding": string;
|
|
||||||
"_initialAccountSetting": {
|
"_initialAccountSetting": {
|
||||||
"accountCreated": string;
|
"accountCreated": string;
|
||||||
"letsStartAccountSetup": string;
|
"letsStartAccountSetup": string;
|
||||||
|
@ -7,7 +7,7 @@ import { DI } from '@/di-symbols.js';
|
|||||||
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { StreamMessages } from '@/server/api/stream/types.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';
|
import type { OnApplicationShutdown } from '@nestjs/common';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -8,7 +8,7 @@ import type { App } from '@/models/entities/App.js';
|
|||||||
import { CacheService } from '@/core/CacheService.js';
|
import { CacheService } from '@/core/CacheService.js';
|
||||||
import isNativeToken from '@/misc/is-native-token.js';
|
import isNativeToken from '@/misc/is-native-token.js';
|
||||||
import { bindThis } from '@/decorators.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 {
|
export class AuthenticationError extends Error {
|
||||||
constructor(message: string) {
|
constructor(message: string) {
|
||||||
|
@ -43,7 +43,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||||||
private cacheService: CacheService,
|
private cacheService: CacheService,
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me) => {
|
super(meta, paramDef, async (ps, me) => {
|
||||||
const token = secureRndstr(32, true);
|
const token = secureRndstr(32);
|
||||||
await this.cacheService.flashAccessTokensCache.set(token, {
|
await this.cacheService.flashAccessTokensCache.set(token, {
|
||||||
user: me,
|
user: me,
|
||||||
permissions: ps.permissions,
|
permissions: ps.permissions,
|
||||||
|
Loading…
Reference in New Issue
Block a user