Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appbase-edge-function
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanjinfei
appbase-edge-function
Commits
c24687d9
Commit
c24687d9
authored
Dec 15, 2024
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix app is_show filed
parent
35e80ffa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.ts
supabase/functions/update-app-recommend/index.ts
+2
-2
index.ts
supabase/functions/update-app/index.ts
+2
-2
No files found.
supabase/functions/update-app-recommend/index.ts
View file @
c24687d9
...
@@ -14,8 +14,8 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
...
@@ -14,8 +14,8 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
while
(
true
)
{
while
(
true
)
{
const
{
data
,
error
}
=
await
supabase
const
{
data
,
error
}
=
await
supabase
.
from
(
table
)
.
from
(
table
)
.
select
(
'
*
'
)
// 可以根据需要调整字段
.
select
(
'
id,name,icon,description,points,category_id,link,images,appPlatforms,caption,is_forward,is_show
'
)
// 可以根据需要调整字段
.
gt
(
'
is_show
_num
'
,
0
)
.
gt
(
'
is_show
'
,
0
)
// .eq('is_show', 1)
// .eq('is_show', 1)
.
order
(
'
created_at
'
,
{
ascending
:
true
})
// 按照创建时间排序
.
order
(
'
created_at
'
,
{
ascending
:
true
})
// 按照创建时间排序
.
range
(
offset
,
offset
+
pageSize
-
1
);
// 分页范围
.
range
(
offset
,
offset
+
pageSize
-
1
);
// 分页范围
...
...
supabase/functions/update-app/index.ts
View file @
c24687d9
...
@@ -14,8 +14,8 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
...
@@ -14,8 +14,8 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
while
(
true
)
{
while
(
true
)
{
const
{
data
,
error
}
=
await
supabase
const
{
data
,
error
}
=
await
supabase
.
from
(
table
)
.
from
(
table
)
.
select
(
'
*
'
)
// 可以根据需要调整字段
.
select
(
'
id,name,icon,description,points,category_id,link,images,appPlatforms,caption,is_forward,is_show
'
)
// 可以根据需要调整字段
.
gt
(
'
is_show
_num
'
,
0
)
.
gt
(
'
is_show
'
,
0
)
// .eq('is_show', 1)
// .eq('is_show', 1)
.
order
(
'
created_at
'
,
{
ascending
:
true
})
// 按照创建时间排序
.
order
(
'
created_at
'
,
{
ascending
:
true
})
// 按照创建时间排序
.
range
(
offset
,
offset
+
pageSize
-
1
);
// 分页范围
.
range
(
offset
,
offset
+
pageSize
-
1
);
// 分页范围
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment