fix: Update AppwriteIDs for new dev
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m33s
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m33s
This commit is contained in:
@@ -21,7 +21,7 @@ if (API_ENDPOINT && API_PROJECT) {
|
||||
client.setEndpoint(API_ENDPOINT).setProject(API_PROJECT);
|
||||
} else {
|
||||
console.error(
|
||||
'Must configure VITE_APPWRITE_API_ENDPOINT and VITE_APPWRITE_API_PROJECT'
|
||||
'Must configure VITE_APPWRITE_API_ENDPOINT and VITE_APPWRITE_API_PROJECT',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,8 @@ type AppwriteIDConfig = {
|
||||
let AppwriteIds = <AppwriteIDConfig>{};
|
||||
|
||||
console.log(API_ENDPOINT);
|
||||
if (
|
||||
API_ENDPOINT === 'https://apidev.bab.toal.ca/v1' ||
|
||||
API_ENDPOINT === 'http://localhost:4000/api/v1'
|
||||
) {
|
||||
AppwriteIds = {
|
||||
databaseId: '65ee1cbf9c2493faf15f',
|
||||
databaseId: 'bab_prod',
|
||||
collection: {
|
||||
boat: 'boat',
|
||||
reservation: 'reservation',
|
||||
@@ -63,23 +59,6 @@ if (
|
||||
userinfo: 'userinfo',
|
||||
},
|
||||
};
|
||||
} else if (API_ENDPOINT === 'https://appwrite.oys.undock.ca/v1') {
|
||||
AppwriteIds = {
|
||||
databaseId: 'bab_prod',
|
||||
collection: {
|
||||
boat: 'boat',
|
||||
reservation: 'reservation',
|
||||
skillTags: 'skillTags',
|
||||
task: 'task',
|
||||
taskTags: 'taskTags',
|
||||
interval: 'interval',
|
||||
intervalTemplate: 'intervalTemplate',
|
||||
},
|
||||
function: {
|
||||
userinfo: '664038294b5473ef0c8d',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
const account = new Account(client);
|
||||
const databases = new Databases(client);
|
||||
|
||||
Reference in New Issue
Block a user