mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 04:50:54 +00:00
feat: fix the settings preview for the business licence and changes request to the approval
This commit is contained in:
@@ -124,6 +124,15 @@ export class FilesService {
|
||||
await this.filesRepository.softDelete(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-slot a stored file under a new `code` (e.g. promote a staged
|
||||
* `business_license_pending` file to the live `business_license` code once a
|
||||
* change request is approved). Bytes and URL are untouched.
|
||||
*/
|
||||
async setCode(id: string, code: string): Promise<void> {
|
||||
await this.filesRepository.update(id, { code });
|
||||
}
|
||||
|
||||
findByResource(resourceId: string, resource: string): Promise<FileRecord[]> {
|
||||
return this.filesRepository.findByResource(resourceId, resource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user