1
0

feat: improve models

This commit is contained in:
Dominik Pschenitschni
2022-09-06 11:36:01 +02:00
committed by Gitea
parent 61427987c2
commit 1a11b43ca8
95 changed files with 198 additions and 139 deletions

View File

@ -1,3 +1,4 @@
import type {IFile} from '@/modelTypes/IFile'
import AbstractService from '../abstractService'
// This service builds on top of the abstract service and basically just hides away method names.
@ -5,7 +6,7 @@ import AbstractService from '../abstractService'
export default class AbstractMigrationFileService extends AbstractService {
serviceUrlKey = ''
constructor(serviceUrlKey) {
constructor(serviceUrlKey: '') {
super({
create: '/migration/' + serviceUrlKey + '/migrate',
})
@ -20,7 +21,7 @@ export default class AbstractMigrationFileService extends AbstractService {
return false
}
migrate(file) {
migrate(file: IFile) {
console.log(file)
return this.uploadFile(
this.paths.create,