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()
|
||||
if (user?.id) {
|
||||
const listings = await directus.get('/items/listings', {
|
||||
filter: { user_created: { _eq: user.id } },
|
||||
filter: { user_created: { _eq: user.id }, status: { _eq: 'published' } },
|
||||
limit: 1
|
||||
})
|
||||
this.isNewAccount = !listings.data || listings.data.length === 0
|
||||
|
||||
@@ -40,7 +40,7 @@ class PageMessages extends HTMLElement {
|
||||
|
||||
async loadConversations() {
|
||||
try {
|
||||
const user = auth.getUser()
|
||||
const user = await auth.getUser()
|
||||
if (!user) {
|
||||
this.loading = false
|
||||
this.updateContent()
|
||||
|
||||
Reference in New Issue
Block a user