add googleSheet to db model

This commit is contained in:
arc-alex
2023-11-23 14:53:22 +01:00
parent ef2fa99673
commit b15b4b48a7
6 changed files with 25 additions and 1 deletions
@@ -11,6 +11,7 @@ import {
UserFields,
Alias,
Settings,
GoogleSheet,
} from 'ontime-types';
import { data, db } from '../../modules/loadDb.js';
@@ -58,6 +59,15 @@ export class DataProvider {
await this.persist();
}
static getGoogleSheet() {
return data.googleSheet;
}
static async setGoogleSheet(newData: GoogleSheet) {
data.googleSheet = { ...newData };
await this.persist();
}
static getOsc() {
return data.osc;
}