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";
|
||||
|
||||
const defaults: Settings = {
|
||||
version: '1.0.0',
|
||||
version: '1.0.1',
|
||||
credentials: null,
|
||||
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
|
||||
name: string
|
||||
avatar_url: string
|
||||
premium: boolean
|
||||
config: {
|
||||
storage_limit: number
|
||||
videos_limit: number
|
||||
|
||||
@@ -111,7 +111,7 @@ const storageUpgradeRequired = computed(() => {
|
||||
if (!settings.value) return false
|
||||
if (!settings.value.credentials) return false
|
||||
// @ts-ignore
|
||||
return !settings.value.credentials.user.config.premium
|
||||
return !settings.value.credentials.user.premium
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user