Sync static image slots from the live website catalog.
Refresh now imports keys from the storefront and deletes unused slots plus their files. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
1c7678ce67
commit
5e5bfc4aa3
@@ -55,6 +55,15 @@ export class WebsiteStaticImagesController {
|
||||
return this.service.list(businessId, query, user);
|
||||
}
|
||||
|
||||
@Post('sync')
|
||||
@RequireBusinessPermission('website.update')
|
||||
syncFromWebsite(
|
||||
@Param('businessId') businessId: string,
|
||||
@CurrentUser() user: AuthUser,
|
||||
) {
|
||||
return this.service.syncFromWebsite(businessId, user);
|
||||
}
|
||||
|
||||
@Get(':slotId')
|
||||
@RequireBusinessPermission('website.read')
|
||||
getOne(
|
||||
|
||||
Reference in New Issue
Block a user