Skip to content

Commit

Permalink
Merge pull request #727 from podverse/develop
Browse files Browse the repository at this point in the history
Release v4.16.0
  • Loading branch information
mitchdowney authored Apr 4, 2024
2 parents 78892c9 + 9c030db commit 2a3967c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "podverse-api",
"version": "4.15.21",
"version": "4.16.0",
"description": "Data API, database migration scripts, and backend services for all Podverse models.",
"contributors": [
"Mitch Downey"
Expand Down Expand Up @@ -144,7 +144,7 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@koa/cors": "3.0.0",
"@koa/cors": "5.0.0",
"@types/crypto-js": "^3.1.47",
"@types/jest": "26.0.3",
"@types/lodash": "4.14.200",
Expand Down
12 changes: 6 additions & 6 deletions src/services/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const generateResetToZeroQueryString = (finalPagePath: string, timeRange, id: st
`
} else if (finalPagePath === PagePaths.tracks) {
queryString = `
UPDATE "episodes" e
UPDATE "episodes" AS e
SET "${TimeRanges[timeRange]}" = 0
WHERE e.id = ${id}
AND e."podcastId"
Expand All @@ -246,7 +246,7 @@ const generateResetToZeroQueryString = (finalPagePath: string, timeRange, id: st
`
} else if (finalPagePath === PagePaths.videos) {
queryString = `
UPDATE "episodes" e
UPDATE "episodes" AS e
SET "${TimeRanges[timeRange]}" = 0
WHERE e.id = ${id}
AND e."podcastId"
Expand Down Expand Up @@ -277,7 +277,7 @@ const generateSetNewCountQuery = (finalPagePath: string, timeRange, id: string,
`
} else if (finalPagePath === PagePaths.episodes) {
queryString = `
UPDATE "episodes" e
UPDATE "episodes" AS e
SET e."${TimeRanges[timeRange]}"=${sum_daily_nb_uniq_visitors}
WHERE e.id = ${id}
AND e."podcastId"
Expand All @@ -291,7 +291,7 @@ const generateSetNewCountQuery = (finalPagePath: string, timeRange, id: string,
`
} else if (finalPagePath === PagePaths.clips) {
queryString = `
UPDATE "mediaRefs" m
UPDATE "mediaRefs" AS m
SET m."${TimeRanges[timeRange]}"=${sum_daily_nb_uniq_visitors}
WHERE m.id='${id}';
`
Expand All @@ -305,7 +305,7 @@ const generateSetNewCountQuery = (finalPagePath: string, timeRange, id: string,
`
} else if (finalPagePath === PagePaths.tracks) {
queryString = `
UPDATE "episodes" e
UPDATE "episodes" AS e
SET e."${TimeRanges[timeRange]}"=${sum_daily_nb_uniq_visitors}
WHERE e.id = ${id}
AND e."podcastId"
Expand All @@ -326,7 +326,7 @@ const generateSetNewCountQuery = (finalPagePath: string, timeRange, id: string,
`
} else if (finalPagePath === PagePaths.videos) {
queryString = `
UPDATE "episodes" e
UPDATE "episodes" AS e
SET e."${TimeRanges[timeRange]}"=${sum_daily_nb_uniq_visitors}
WHERE e.id = ${id}
AND e."podcastId"
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"

"@koa/cors@3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@koa/cors/-/cors-3.0.0.tgz#df021b4df2dadf1e2b04d7c8ddf93ba2d42519cb"
integrity sha512-hDp+cXj6vTYSwHRJfiSpnf5dTMv3FmqNKh1or9BPJk4SHOviHnK9GoL9dT0ypt/E+hlkRkZ9edHylcosW3Ghrw==
"@koa/cors@5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@koa/cors/-/cors-5.0.0.tgz#0029b5f057fa0d0ae0e37dd2c89ece315a0daffd"
integrity sha512-x/iUDjcS90W69PryLDIMgFyV21YLTnG9zOpPXS7Bkt2b8AsY3zZsIpOLBkYr9fBcF3HbkKaER5hOBZLfpLgYNw==
dependencies:
vary "^1.1.2"

Expand Down Expand Up @@ -4332,9 +4332,9 @@ flush-write-stream@^1.0.0:
readable-stream "^2.3.6"

follow-redirects@^1.15.0:
version "1.15.3"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
version "1.15.4"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.4.tgz#cdc7d308bf6493126b17ea2191ea0ccf3e535adf"
integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==

for-in@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit 2a3967c

Please sign in to comment.