Update naming
This commit is contained in:
@@ -17,20 +17,45 @@ if (process.env.APPWRITE_API_ENDPOINT && process.env.APPWRITE_API_PROJECT)
|
||||
client
|
||||
.setEndpoint(process.env.APPWRITE_API_ENDPOINT)
|
||||
.setProject(process.env.APPWRITE_API_PROJECT);
|
||||
|
||||
else if (process.env.DEV) {
|
||||
client
|
||||
.setEndpoint('http://localhost:4000/api/v1')
|
||||
.setProject('65ede55a213134f2b688');
|
||||
} else {
|
||||
client.setEndpoint('https://appwrite.oys.undock.ca/v1').setProject('bab');
|
||||
}
|
||||
//TODO move this to config file
|
||||
const AppwriteIds = {
|
||||
databaseId: '65ee1cbf9c2493faf15f',
|
||||
collection: {
|
||||
boat: '66341910003e287cd71c',
|
||||
reservation: '663f8847000b8f5e29bb',
|
||||
skillTags: '66072582a74d94a4bd01',
|
||||
task: '65ee1cd5b550023fae4f',
|
||||
taskTags: '65ee21d72d5c8007c34c',
|
||||
timeBlock: '66361869002883fb4c4b',
|
||||
timeBlockTemplate: '66361f480007fdd639af',
|
||||
},
|
||||
};
|
||||
const AppwriteIds = process.env.DEV
|
||||
? {
|
||||
databaseId: '65ee1cbf9c2493faf15f',
|
||||
collection: {
|
||||
boat: '66341910003e287cd71c',
|
||||
reservation: '663f8847000b8f5e29bb',
|
||||
skillTags: '66072582a74d94a4bd01',
|
||||
task: '65ee1cd5b550023fae4f',
|
||||
taskTags: '65ee21d72d5c8007c34c',
|
||||
interval: '66361869002883fb4c4b',
|
||||
intervalTemplate: '66361f480007fdd639af',
|
||||
},
|
||||
function: {
|
||||
userinfo: 'userinfo',
|
||||
},
|
||||
}
|
||||
: {
|
||||
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