continue fix generating flow
This commit is contained in:
@@ -9,14 +9,14 @@ import ProgressBar from "../../components/ProgressBar";
|
||||
import { goBack, navigate } from "../../navigation/NavigationService";
|
||||
import { Routes } from "../../navigation";
|
||||
import GradientButton from "../../components/GradientButton";
|
||||
import firebase from "../../config/firebase";
|
||||
import firebase, { projectsRef } from "../../config/firebase";
|
||||
import useMinuit from "react-native-minuit/src/hooks/useMinuit.js";
|
||||
import moment from "moment";
|
||||
|
||||
const CreatingSong = ({ active, config }) => {
|
||||
const [progress, setProgress] = useState(0);
|
||||
const [called, setCalled] = useState(false);
|
||||
const [result, setResult] = useState(null);
|
||||
const [, setResult] = useState(null);
|
||||
const { setIsLoading } = useMinuit();
|
||||
const [musicStatus, setMusicStatus] = useState(null);
|
||||
const [generationStartAt, setGenerationStartAt] = useState(null);
|
||||
@@ -110,10 +110,7 @@ const CreatingSong = ({ active, config }) => {
|
||||
|
||||
// Si un projectId et un taskId existent, mettre à jour le projet
|
||||
if (config?.projectId && taskId) {
|
||||
const projectRef = firebase
|
||||
.firestore()
|
||||
.collection("projects")
|
||||
.doc(config.projectId);
|
||||
const projectRef = projectsRef.doc(config.projectId);
|
||||
|
||||
await projectRef.set(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user