Bump Nuxt + Minor Fixes (#1065)

* Bump Nuxt + Minor Fixes

* Run lint
This commit is contained in:
Geometrically
2023-03-27 09:20:25 -07:00
committed by GitHub
parent 25bd61558b
commit 7214b71c29
13 changed files with 1395 additions and 1582 deletions

View File

@@ -52,6 +52,20 @@ export default defineNuxtPlugin((nuxtApp) => {
}
version.primaryFile = version.files.find((file) => file.primary) ?? version.files[0]
if (!version.primaryFile) {
version.primaryFile = {
hashes: {
sha1: '',
sha512: '',
},
url: '#',
filename: 'unknown',
primary: false,
size: 0,
file_type: null,
}
}
version.author = authorMembers[version.author_id]
if (!version.author) {
version.author = members.find((x) => x.user.id === version.author_id)