From 8fcf2b41f5a1ffeef9965e17e68d9922fa125908 Mon Sep 17 00:00:00 2001 From: Axel Froborg Date: Tue, 16 Aug 2022 18:47:48 +0200 Subject: [PATCH] default profile images to public --- CHANGELOG.MD | 5 +++++ package-lock.json | 2 +- package.json | 2 +- src/routes/file.routes.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index a9733c95..9ba8d064 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -4,6 +4,11 @@ Alla märkbara ändringar ska dokumenteras i denna fil. Baserat på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), och följer [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.2] - 2022-08-16 + +### Ändrat +- Profilbilder är nu public + ## [1.0.1] - 2022-08-16 ### Ändrat diff --git a/package-lock.json b/package-lock.json index 8627924a..6e177b2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ekorre-ts", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 4c34ca4d..7c3a72f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ekorre-ts", - "version": "1.0.1", + "version": "1.0.2", "description": "E-Sektionens backend", "main": "src/index.ts", "scripts": { diff --git a/src/routes/file.routes.ts b/src/routes/file.routes.ts index 31757111..f8aa2ce8 100644 --- a/src/routes/file.routes.ts +++ b/src/routes/file.routes.ts @@ -88,7 +88,7 @@ filesRoute.post('/upload/avatar', upload(), verifyAuthenticated, async (req, res const path = 'avatars'; const file = files.file instanceof Array ? files.file[0] : files.file; - const accessType = AccessType.Authenticated; + const accessType = AccessType.Public; const dbFile = await fileApi.saveFile(file, accessType, path, username);