fix: missing await in messages, incomplete SW locale cache, captcha bypass via drafts
This commit is contained in:
@@ -144,7 +144,7 @@ class PageCreate extends HTMLElement {
|
|||||||
const user = await auth.getUser()
|
const user = await auth.getUser()
|
||||||
if (user?.id) {
|
if (user?.id) {
|
||||||
const listings = await directus.get('/items/listings', {
|
const listings = await directus.get('/items/listings', {
|
||||||
filter: { user_created: { _eq: user.id } },
|
filter: { user_created: { _eq: user.id }, status: { _eq: 'published' } },
|
||||||
limit: 1
|
limit: 1
|
||||||
})
|
})
|
||||||
this.isNewAccount = !listings.data || listings.data.length === 0
|
this.isNewAccount = !listings.data || listings.data.length === 0
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class PageMessages extends HTMLElement {
|
|||||||
|
|
||||||
async loadConversations() {
|
async loadConversations() {
|
||||||
try {
|
try {
|
||||||
const user = auth.getUser()
|
const user = await auth.getUser()
|
||||||
if (!user) {
|
if (!user) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.updateContent()
|
this.updateContent()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const CACHE_NAME = 'dgray-v47';
|
const CACHE_NAME = 'dgray-v48';
|
||||||
const STATIC_ASSETS = [
|
const STATIC_ASSETS = [
|
||||||
'/',
|
'/',
|
||||||
'/index.html',
|
'/index.html',
|
||||||
@@ -72,6 +72,10 @@ const STATIC_ASSETS = [
|
|||||||
'/locales/de.json',
|
'/locales/de.json',
|
||||||
'/locales/en.json',
|
'/locales/en.json',
|
||||||
'/locales/fr.json',
|
'/locales/fr.json',
|
||||||
|
'/locales/it.json',
|
||||||
|
'/locales/es.json',
|
||||||
|
'/locales/pt.json',
|
||||||
|
'/locales/ru.json',
|
||||||
|
|
||||||
// Fonts
|
// Fonts
|
||||||
'/assets/fonts/Inter-Regular.woff2',
|
'/assets/fonts/Inter-Regular.woff2',
|
||||||
|
|||||||
Reference in New Issue
Block a user