mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-03-13 13:46:00 +00:00
Change premium field
This commit is contained in:
@@ -4,7 +4,7 @@ import * as fs from 'fs'
|
|||||||
import {Credentials, Settings} from "../../shared/schema";
|
import {Credentials, Settings} from "../../shared/schema";
|
||||||
|
|
||||||
const defaults: Settings = {
|
const defaults: Settings = {
|
||||||
version: '1.0.0',
|
version: '1.0.1',
|
||||||
credentials: null,
|
credentials: null,
|
||||||
endpoint: 'https://api.rerunmanager.com/v1/',
|
endpoint: 'https://api.rerunmanager.com/v1/',
|
||||||
}
|
}
|
||||||
|
|||||||
1
shared/schema.d.ts
vendored
1
shared/schema.d.ts
vendored
@@ -5,6 +5,7 @@ export interface User {
|
|||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
avatar_url: string
|
avatar_url: string
|
||||||
|
premium: boolean
|
||||||
config: {
|
config: {
|
||||||
storage_limit: number
|
storage_limit: number
|
||||||
videos_limit: number
|
videos_limit: number
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ const storageUpgradeRequired = computed(() => {
|
|||||||
if (!settings.value) return false
|
if (!settings.value) return false
|
||||||
if (!settings.value.credentials) return false
|
if (!settings.value.credentials) return false
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return !settings.value.credentials.user.config.premium
|
return !settings.value.credentials.user.premium
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user