skip to Main Content

Javascript – How to share data between concurrently executed promises in NodeJS

I want to share data between the two concurrent method calls shown below. async generateSuggestedSparks(userId: GraphID, friends: Person[], latLng: LatLng) { let suggestions = await this.generateAndMergeListsInParallel([ this.generateHardCodedSparks(userId, friends, latLng), this.generateRandomActivitySparks(userId, friends, latLng, 6), ]); suggestions = this.filterDuplicateSuggestions(suggestions); return suggestions.slice(0, 7);…

VIEW QUESTION

Javascript – Forbidden access error: following Directus SDK tutorial

I'm having trouble learning Directus SDK - loosely following: https://docs.directus.io/blog/building-a-personal-travel-journal-with-vue-js-and-directus.html#creating-a-journal-and-users-collection When I try to access data, I'm getting: GET http://127.0.0.1:8055/items/calibers 403 (Forbidden) I can access this from Chrome directly, just not the SDK. The details of the error in the…

VIEW QUESTION
Back To Top
Search