adding sources. reorg upsertBulk

This commit is contained in:
Jason Kulatunga 2022-11-08 17:53:08 -08:00
parent 043869a0ef
commit 0c480576a6
28 changed files with 291 additions and 14 deletions

View File

@ -33,7 +33,7 @@ export class SourceSyncWorker implements DoWork<string, string> {
//lets refresh the source information if required.
console.log("!!!!!!!!!!!!!!STARTING WORKER SYNC!!!!!!!!!", sourceSyncMessage)
return client.RefreshSourceToken()
.then((wasSourceRefreshed)=>{
.then((wasSourceRefreshed) => {
if(wasSourceRefreshed){
//the source was updated, we need to save the updated source information
return db.UpsertSource(client.source)
@ -43,7 +43,7 @@ export class SourceSyncWorker implements DoWork<string, string> {
}
return client
})
.then((client)=> {
.then((client) => {
return client.SyncAll(db)
})
.then((resp) => {

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,274 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="210px" height="116.7px" viewBox="0 0 210 116.7" style="enable-background:new 0 0 210 116.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:#E21936;}
.st1{fill:#7D858B;}
.st2{fill:#C31230;}
.st3{fill:#0ABFDC;}
.st4{fill:#1F376D;}
.st5{fill:url(#SVGID_1_);}
.st6{clip-path:url(#SVGID_3_);fill:#A6DDEB;}
.st7{clip-path:url(#SVGID_5_);fill:url(#SVGID_6_);}
.st8{clip-path:url(#SV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1.8-1.2h-1.3v2.8c0,0.8,0.1,1.2,0.4,1.3c0.4,0.1,0.8,0.1,1.5,0.1
c0.9,0,1.5-0.1,1.9-0.6c0.4-0.4,0.6-0.8,0.8-1.5L184.1,78.7z"/>
</g>
<g>
<g>
<path class="st1" d="M18.5,9.4c-2.7,1.2-4.9,2.7-6.8,4.7S8.3,18.4,7.3,21c-1.1,2.7-1.6,5.5-1.6,8.6c0,3.2,0.6,6.1,1.6,8.8
c1.1,2.7,2.6,5,4.6,7c1.9,2,4.2,3.5,6.8,4.6c2.6,1.2,5.4,1.6,8.5,1.6h10v4.8h-10c-4,0-7.6-0.7-10.8-2.1c-3.3-1.4-6.1-3.3-8.3-5.8
c-2.3-2.5-4.1-5.3-5.4-8.6c-1.3-3.3-1.9-6.8-1.9-10.6c0-3.9,0.7-7.5,2-10.7c1.4-3.3,3.3-6.1,5.6-8.5c2.5-2.3,5.3-4.2,8.5-5.5
c3.3-1.3,6.7-2,10.3-2h0.2h9.7v4.8h-9.7C24.1,7.6,21.1,8.2,18.5,9.4z"/>
<path class="st1" d="M85.7,2.9h29.1v4.8H91V27h13.9v4.8H91v19.7h23.7v4.8h-29V2.9z"/>
<path class="st1" d="M121.6,3h7.3L166,56.5h-6.5l-12.4-18H127v18h-5.4V3z M143.7,33.7L127,9.1h-0.1v24.5H143.7z"/>
<path class="st1" d="M190.8,36.5l15,19.8H199l-18-24.2c0.8,0,1.6,0,2.7,0c0.9,0,2,0,3.1-0.1c1.1,0,2-0.1,3.1-0.2
c0.9-0.1,1.9-0.4,2.7-0.6c2.6-0.8,4.7-2.2,6.3-4.1c1.6-2,2.5-4.3,2.5-7c0-2-0.5-4-1.5-6c-1.1-1.9-2.5-3.4-4.2-4.3s-3.4-1.5-5-1.8
c-1.6-0.2-3.4-0.2-5.4-0.2h-9.3v48.5h-5.3V3h13.5c0.9,0,2.1,0,3.2,0.1c1.2,0,2.2,0.1,3.4,0.2c1.2,0.1,2.2,0.4,3.4,0.6
c1.1,0.2,2.1,0.6,2.9,1.1c3.1,1.5,5.4,3.5,7,6.2s2.5,5.6,2.5,9c0,2.2-0.5,4.3-1.3,6.3c-0.8,1.9-2,3.6-3.4,5
c-1.4,1.4-3.1,2.6-5,3.4C195.1,35.9,193,36.4,190.8,36.5z"/>
</g>
<path class="st2" d="M64.1,0.7c0,0,10.6-0.6,9.6,16.1c-0.4,5.3-1.2,10.4-2.6,15.5c-1.4,4.8-4.1,9-6.7,13.4
c-0.9-1.3-1.9-2.6-2.8-3.9c0,0,0.7-1.4,0.8-1.4c0.6-1.3,1.2-2.6,1.8-3.9c2.8-6.5,4.3-13.4,4.6-20.4c0.1-2,0-4.1-0.6-6.1
c-0.4-1.3-0.8-2.5-1.5-3.5c-0.7-1.2-2.1-2-3.4-2.1C63.4,4.5,63.3,1.5,64.1,0.7z"/>
<g>
<path class="st0" d="M61.1,42.6c-2.8-4.7-4.5-10-5.4-15.4c-0.8-4.6-1.6-10-0.5-14.6c0.6-2.2,1.9-4.7,3.6-6.2c0,0,2-1.8,3.8-1.9
c0,0,0.1-3.3,0.7-3.9c-1.9,0.1-3.5,0.2-5.3,1.1c-7.2,3.1-8.2,12.6-7.7,19.4c0.6,8.6,2.7,17.4,6.9,24.9c0.1,0.1,0.1,0.2,0.2,0.5
C59.2,44.7,60.5,43.3,61.1,42.6z"/>
<path class="st2" d="M43.4,55.9v3.8c0,0,9.3-2.2,16.2-8.3c-1.1-1.3-2-2.7-2.8-4.1C53.7,50.2,49,53.9,43.4,55.9z"/>
<path class="st0" d="M63.8,46.6c-0.7-0.9-1.3-1.8-1.9-2.7c-0.2-0.5-0.6-0.9-0.8-1.3c-0.6,0.7-1.9,2.1-3.6,3.8
c0.8,1.4,1.8,2.8,2.8,4.1C61.5,49.3,62.7,48,63.8,46.6z"/>
</g>
<g>
<path class="st0" d="M74.9,55.4c-4.5-1.4-8.2-5-11.2-8.8c-1.1,1.4-2.3,2.7-3.6,3.9c3.3,4.2,7.6,7.6,12.9,9.2
c1.5,0.5,3.1,0.6,4.6,0.8c0.2,0,0.6,0,0.8,0.1l2.3-3.6C78.3,56.6,74.9,55.4,74.9,55.4z"/>
</g>
</g>
<g>
<g>
<path class="st1" d="M41.6,107v-3.4c0-2,1.1-3.3,3.2-3.3s3.2,1.3,3.2,3.3v3.4c0,2.8-1.1,4-3.2,4C42.6,110.8,41.6,109.8,41.6,107z
M46.7,107v-3.4c0-2.1-1.5-2.2-1.9-2.2c-0.4,0-1.9,0.1-1.9,2.2v3.4c0,2.2,0.7,2.8,1.9,2.8S46.7,109.2,46.7,107z"/>
<path class="st1" d="M50.4,103.5v-1.4c0-1.4,1.1-1.8,2-1.8c0.2,0,0.4,0,0.6,0v0.8c-1.2-0.1-1.4,0.5-1.4,1.1v1.2H53v0.8h-1.4v6.2
h-1.2v-6.2h-1.1v-0.8h1.1V103.5z"/>
<path class="st1" d="M54.2,103.5v-1.4c0-1.4,1.1-1.8,2-1.8c0.2,0,0.4,0,0.6,0v0.8c-1.2-0.1-1.4,0.5-1.4,1.1v1.2h1.4v0.8h-1.4v6.2
h-1.2v-6.2h-1.1v-0.8h1.1V103.5z"/>
<path class="st1" d="M59.2,107.4c0,2,0.6,2.3,1.4,2.3s1.2-0.6,1.3-1.4h1.3c0,1.5-0.9,2.3-2.5,2.3s-2.7-0.5-2.7-3.6
c0-2.1,0.2-3.9,2.7-3.9c2,0,2.6,1.2,2.6,3.5v0.6h-4.1V107.4z M61.9,106.6c0-2.1-0.6-2.3-1.4-2.3c-0.7,0-1.3,0.4-1.4,2.3H61.9z"/>
<path class="st1" d="M66.2,104.6L66.2,104.6c0.5-1.1,1.1-1.2,2.2-1.2v1.2c-0.2,0-0.4-0.1-0.6-0.1c-1.3,0-1.6,0.9-1.6,1.9v4.2H65
v-7.2h1.2V104.6z"/>
<path class="st1" d="M70.9,107.4c0,2,0.6,2.3,1.4,2.3c0.8,0,1.2-0.6,1.3-1.4h1.3c0,1.5-0.9,2.3-2.5,2.3c-1.5,0-2.7-0.5-2.7-3.6
c0-2.1,0.2-3.9,2.7-3.9c2,0,2.6,1.2,2.6,3.5v0.6h-4.1V107.4z M73.7,106.6c0-2.1-0.6-2.3-1.4-2.3c-0.7,0-1.3,0.4-1.4,2.3H73.7z"/>
<path class="st1" d="M80.7,100.5h1.2v10.2h-1.2v-0.8l0,0c-0.4,0.7-0.9,0.9-1.6,0.9c-1.2,0-2.3-0.5-2.3-3.6c0-1.8,0-3.9,2.3-3.9
c0.7,0,1.2,0.4,1.5,0.8l0,0v-3.6H80.7z M79.3,104.4c-1.3,0-1.4,0.9-1.4,2.9c0,1.1,0,2.6,1.4,2.6c1.3,0,1.3-1.6,1.3-3.1
C80.7,105.9,80.5,104.4,79.3,104.4z"/>
<path class="st1" d="M88.3,110.7h-1.2v-10.2h1.2v3.8l0,0c0.4-0.6,0.9-0.8,1.5-0.8c2.3,0,2.3,2,2.3,3.9c0,3.2-1.2,3.6-2.3,3.6
c-0.7,0-1.3-0.4-1.6-0.9l0,0v0.7H88.3z M89.6,109.9c1.4,0,1.4-1.5,1.4-2.6c0-1.9-0.1-2.9-1.4-2.9s-1.3,1.5-1.3,2.5
C88.3,107.9,88.2,109.9,89.6,109.9z"/>
<path class="st1" d="M96.3,109.3L96.3,109.3l1.8-5.8h1.3l-3.3,9.9h-1.2l0.8-2.7l-2.5-7.2h1.3L96.3,109.3z"/>
</g>
<path class="st3" d="M125.9,109.5h0.8v2.5c0.4-0.4,0.7-0.6,1.2-0.6c0.8,0,1.4,0.5,1.4,1.4v2.6h-0.8v-2.3c0-0.6-0.2-0.9-0.8-0.9
c-0.4,0-0.7,0.1-0.9,0.5v2.8h-0.8V109.5z"/>
<path class="st3" d="M132.2,115.6c-1.3,0-2-0.8-2-2.1c0-1.2,0.8-2,1.9-2s1.9,0.8,1.9,2.1v0.1H131c0,0.7,0.5,1.2,1.3,1.2
c0.5,0,1.1-0.2,1.6-0.6v0.7C133.3,115.4,132.8,115.6,132.2,115.6 M133,113.2c0-0.6-0.5-0.9-0.9-0.9c-0.6,0-0.9,0.4-1.1,0.9H133z"/>
<path class="st3" d="M136.2,115.6c-0.7,0-1.2-0.4-1.2-0.9c0-0.6,0.5-0.9,1.3-1.3l0.9-0.4c0-0.1,0-0.1,0-0.1c0-0.5-0.2-0.7-0.7-0.7
c-0.5,0-0.9,0.2-1.4,0.6V112c0.4-0.4,0.9-0.5,1.5-0.5c1.1,0,1.4,0.5,1.4,1.4v1.6c0,0.2,0,0.4,0.1,0.4c0.1,0,0.2-0.1,0.4-0.2v0.5
c-0.2,0.2-0.6,0.4-0.8,0.4c-0.4,0-0.5-0.1-0.5-0.4C136.9,115.4,136.5,115.6,136.2,115.6 M137.3,113.5c-0.9,0.2-1.4,0.5-1.4,0.9
c0,0.4,0.2,0.5,0.6,0.5c0.2,0,0.6-0.1,0.8-0.4V113.5z"/>
<rect x="139.5" y="109.5" class="st3" width="0.8" height="6"/>
<path class="st3" d="M143.1,115.6c-0.9,0-1.2-0.5-1.2-1.4v-1.9h-0.7v-0.1l1.4-1.5h0.1v0.9h1.2v0.7h-1.2v1.8c0,0.6,0.1,0.8,0.6,0.8
c0.2,0,0.5-0.1,0.7-0.2v0.7C143.7,115.5,143.5,115.6,143.1,115.6"/>
<path class="st3" d="M145,109.5h0.8v2.5c0.4-0.4,0.7-0.6,1.2-0.6c0.8,0,1.4,0.5,1.4,1.4v2.6h-0.8v-2.3c0-0.6-0.2-0.9-0.8-0.9
c-0.4,0-0.7,0.1-0.9,0.5v2.8H145V109.5z"/>
<path class="st3" d="M152.5,115.4c-0.4,0.1-0.8,0.2-1.2,0.2c-1.3,0-2.2-0.8-2.2-2s0.9-2,2.1-2c0.4,0,0.7,0.1,1.1,0.2v0.8
c-0.4-0.2-0.7-0.4-1.1-0.4c-0.8,0-1.4,0.6-1.4,1.3c0,0.7,0.6,1.3,1.4,1.3c0.4,0,0.7-0.1,1.1-0.2v0.7
C152.3,115.4,152.5,115.4,152.5,115.4z"/>
<path class="st3" d="M154.6,115.6c-0.7,0-1.2-0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h1.9v0.5c0.2-0.2,0.5-0.4,0.8-0.5c0.2-0.1,0.6-0.1,0.9-0.1c0.8,0,1.5,0.2,2.1,0.8
c0.6,0.6,0.8,1.3,0.8,2.2c0,0.9-0.2,1.6-0.8,2.2c-0.6,0.6-1.2,0.8-2.1,0.8c-0.4,0-0.6,0-0.9-0.1c-0.2-0.1-0.6-0.2-0.7-0.5v3.4h-2
V109.7z M150.6,102.4v2.6c0.1,0.1,0.4,0.2,0.5,0.2c0.2,0.1,0.4,0.1,0.6,0.1c0.5,0,0.8-0.1,1.1-0.5s0.4-0.7,0.4-1.2
c0-0.5-0.1-0.9-0.4-1.2c-0.2-0.4-0.6-0.5-1.1-0.5c-0.2,0-0.4,0-0.6,0.1C151,102.1,150.9,102.3,150.6,102.4z"/>
<path class="st4" d="M156.4,106.7v-8.9h1.9v8.9H156.4z"/>
<path class="st4" d="M161.3,109.7h-2l1.8-3.9l-2.3-5h2l1.2,2.9l1.3-2.9h2L161.3,109.7z"/>
</g>
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="113.534" y1="-27.7222" x2="113.534" y2="-4.395" gradientTransform="matrix(1 0 0 -1 0 100)">
<stop offset="0" style="stop-color:#0ABFDC"/>
<stop offset="0.2104" style="stop-color:#0ABCD9"/>
<stop offset="0.3794" style="stop-color:#0CB2D1"/>
<stop offset="0.5339" style="stop-color:#0FA1C3"/>
<stop offset="0.6798" style="stop-color:#1289B0"/>
<stop offset="0.8198" style="stop-color:#176A97"/>
<stop offset="0.9534" style="stop-color:#1D4579"/>
<stop offset="0.9979" style="stop-color:#1F376D"/>
</linearGradient>
<ellipse class="st5" cx="113.5" cy="106.4" rx="10" ry="10"/>
<g>
<g>
<g>
<g>
<defs>
<circle id="SVGID_2_" cx="113.6" cy="106.3" r="10"/>
</defs>
<clipPath id="SVGID_3_">
<use xlink:href="#SVGID_2_" style="overflow:visible;"/>
</clipPath>
<path class="st6" d="M111.7,95.1c0,0-3.3,5.4-2.5,6.9c0.8,1.5,6.7,7.3,6.7,7.3v4.6c0,0-7,2.6-7.9,2.8
c-0.7,0.2-6.7-0.9-6.7-0.9l-0.9-13.9l3.2-5l5.2-1.9L111.7,95.1z"/>
</g>
</g>
</g>
</g>
<g>
<g>
<g>
<g>
<defs>
<circle id="SVGID_4_" cx="113.5" cy="106.4" r="10"/>
</defs>
<clipPath id="SVGID_5_">
<use xlink:href="#SVGID_4_" style="overflow:visible;"/>
</clipPath>
<linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="118.7515" y1="-11.4679" x2="107.5685" y2="0.3676" gradientTransform="matrix(1 0 0 -1 0 100)">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="0.1713" style="stop-color:#FCFCFD"/>
<stop offset="0.3088" style="stop-color:#F2F3F6"/>
<stop offset="0.4346" style="stop-color:#E1E4EB"/>
<stop offset="0.5535" style="stop-color:#C9CFDC"/>
<stop offset="0.6674" style="stop-color:#AAB3C8"/>
<stop offset="0.7777" style="stop-color:#8492AF"/>
<stop offset="0.885" style="stop-color:#586A92"/>
<stop offset="0.9875" style="stop-color:#253C71"/>
<stop offset="0.9988" style="stop-color:#1F376D"/>
</linearGradient>
<path class="st7" d="M109.2,97.3c0.1-0.1,0.2-0.1,0.4-0.2c-1.5,0.7-2.6,1.8-3.1,3.3c-1.8,5.2,3.3,7.2,6.1,8.1
c1.1,0.4,1.8,0.7,2.2,0.9l0,0c3.3,1.4,4.8,4.3,2.7,6c1.8-0.8,2.9-2.2,3.4-4.1c1.2-4.9-3.5-6.8-6.3-7.9
c-0.5-0.2-1.3-0.4-1.9-0.7c0,0,0,0-0.1,0C110.1,101.9,106.7,99.2,109.2,97.3z"/>
</g>
</g>
</g>
<g>
<g>
<g>
<defs>
<circle id="SVGID_7_" cx="113.5" cy="106.4" r="10"/>
</defs>
<clipPath id="SVGID_8_">
<use xlink:href="#SVGID_7_" style="overflow:visible;"/>
</clipPath>
<linearGradient id="SVGID_9_" gradientUnits="userSpaceOnUse" x1="107.4122" y1="-1.673" x2="118.9359" y2="2.9809" gradientTransform="matrix(1 0 0 -1 0 100)">
<stop offset="3.094100e-04" style="stop-color:#FFFFFF"/>
<stop offset="0.119" style="stop-color:#FAFBFC"/>
<stop offset="0.252" style="stop-color:#EDEFF3"/>
<stop offset="0.3919" style="stop-color:#D6DBE5"/>
<stop offset="0.5366" style="stop-color:#B7BFD0"/>
<stop offset="0.6851" style="stop-color:#8F9BB6"/>
<stop offset="0.8367" style="stop-color:#5D6F96"/>
<stop offset="0.9882" style="stop-color:#243B70"/>
<stop offset="1" style="stop-color:#1F376D"/>
</linearGradient>
<path class="st8" d="M112.6,101c0.7-1.6,4.8-3.4,6.9-2.6l0.9-0.2c-2-0.9-4.2-1.5-6.2-1.6c-1.5-0.1-2.9,0.1-4.1,0.6
c-0.2,0.1-0.4,0.1-0.6,0.2c-0.1,0.1-0.2,0.1-0.4,0.2c-2.5,1.9,0.8,4.6,3.3,5.5c0,0,0,0,0.1,0
C112.1,102.6,112.4,101.3,112.6,101z"/>
</g>
</g>
</g>
<g>
<g>
<g>
<defs>
<circle id="SVGID_10_" cx="113.5" cy="106.4" r="10"/>
</defs>
<clipPath id="SVGID_11_">
<use xlink:href="#SVGID_10_" style="overflow:visible;"/>
</clipPath>
<linearGradient id="SVGID_12_" gradientUnits="userSpaceOnUse" x1="111.6526" y1="-14.7105" x2="118.0405" y2="-10.011" gradientTransform="matrix(1 0 0 -1 0 100)">
<stop offset="2.800000e-03" style="stop-color:#E7E6EE"/>
<stop offset="0.169" style="stop-color:#E4E3EC"/>
<stop offset="0.3119" style="stop-color:#D9DAE5"/>
<stop offset="0.4462" style="stop-color:#C7CADA"/>
<stop offset="0.5753" style="stop-color:#AEB4C9"/>
<stop offset="0.7006" style="stop-color:#8E98B5"/>
<stop offset="0.8232" style="stop-color:#67769B"/>
<stop offset="0.9412" style="stop-color:#394D7E"/>
<stop offset="0.9997" style="stop-color:#1F376D"/>
</linearGradient>
<path class="st9" d="M114.8,109.5L114.8,109.5c0.7,0.5,0.8,0.8,0.7,1.2c-0.4,0.7-4.6,4.7-9,2.6l-0.5,0.9
c2.1,0.9,4.7,1.9,7.2,2.1c1.5,0.1,2.8-0.2,4-0.6c0.1,0,0.2-0.1,0.5-0.2C119.6,113.9,118.1,110.9,114.8,109.5z"/>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -317,6 +317,7 @@ export class PouchdbRepository implements IDatabaseRepository {
newDoc.updated_at = newDoc.updated_at || (newDoc as any).meta?.updated_at
}
newDoc.updated_at = newDoc.updated_at || (new Date().toISOString())
// console.log("merge, empty")
return newDoc
}
@ -347,10 +348,11 @@ export class PouchdbRepository implements IDatabaseRepository {
} else {
throw new Error("unknown doc_type, cannot diff for upsert: " + newDoc.doc_type)
let errMsg = "unknown doc_type, cannot diff for upsert: " + newDoc.doc_type
console.error(errMsg)
throw new Error(errMsg)
}
})
})
.then(( result ): UpsertSummary => {
// // success, res is {rev: '1-xxx', updated: true, id: 'myDocId'}
@ -364,17 +366,18 @@ export class PouchdbRepository implements IDatabaseRepository {
});
}
protected upsertBulk(docs: IDatabaseDocument[]): Promise<UpsertSummary> {
return Promise.all(docs.map((doc) => {
protected async upsertBulk(docs: IDatabaseDocument[]): Promise<UpsertSummary> {
//insert sequentially (not in parallel)
let finalUpsertSummary = new UpsertSummary()
for (let doc of docs){
doc.populateId();
return this.upsertDocument(doc)
})).then((results) => {
return results.reduce((prev, current ) => {
prev.totalResources += current.totalResources
prev.updatedResources = prev.updatedResources.concat(current.updatedResources)
return prev
}, new UpsertSummary())
})
let upsertSummary = await this.upsertDocument(doc)
finalUpsertSummary.totalResources += upsertSummary.totalResources
finalUpsertSummary.updatedResources = finalUpsertSummary.updatedResources.concat(upsertSummary.updatedResources)
}
return finalUpsertSummary
}
protected getDocument(id: string): Promise<any> {