Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
solve container undefined
  • Loading branch information
enriquezrene committed Nov 25, 2020
commit b2402a7a705087c338d7e1c6540d729f22d01283
5 changes: 3 additions & 2 deletions .github/workflows/CD-azure-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
- name: 'run npm'
run: |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
cd AutomaticClockOuts
npm i -g azure-functions-core-tools@core --unsafe-perm true
az login -u ${{ secrets.AZ_USERNAME }} -p ${{ secrets.AZ_PASSWORD }}
cd AutomaticClockOuts
npm install
cd ../
az login -u ${{ secrets.AZ_USERNAME }} -p ${{ secrets.AZ_PASSWORD }}
func settings add FUNCTIONS_WORKER_RUNTIME node
func azure functionapp publish time-tracker-azure-functions --node
1 change: 1 addition & 0 deletions AutomaticClockOuts/clock_out.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const doClockOut = async (context) => {
const { endpoint, key, databaseId, slackWebHook } = config;
const client = new CosmosClient({endpoint, key});
const database = client.database(databaseId);
const container = database.container('time_entry');
const timeEntryDao = new TimeEntryDao(database);

const response = await MsalClient.findUsersInMS();
Expand Down