fix: environments not being written correctly
This commit is contained in:
@@ -43,13 +43,15 @@ async function writeEnvironments(environment: Environment[]) {
|
||||
environment,
|
||||
}
|
||||
|
||||
console.log(ev)
|
||||
|
||||
try {
|
||||
await setDoc(
|
||||
doc(
|
||||
getFirestore(),
|
||||
"users",
|
||||
currentUser$.value.uid,
|
||||
"envrionments",
|
||||
"environments",
|
||||
"sync"
|
||||
),
|
||||
ev
|
||||
@@ -85,6 +87,7 @@ async function writeGlobalEnvironment(variables: Environment["variables"]) {
|
||||
|
||||
export function initEnvironments() {
|
||||
environments$.subscribe((envs) => {
|
||||
console.log("env update")
|
||||
if (
|
||||
currentUser$.value &&
|
||||
settingsStore.value.syncEnvironments &&
|
||||
|
||||
Reference in New Issue
Block a user