Better file api (#30)

* Better file api
This commit is contained in:
Jonas Plum authored and GitHub committed 2022-01-23 04:27:31 +01:00
1 parent 8ca57c14d9
commit 2d817318f2
17 files changed
+105 -521

No files matched your search

+1 -1
View File
@@ -287,7 +287,7 @@ func createFile(ctx context.Context, server *catalyst.Server) {
log.Fatal(err)
}
if _, err := server.DB.LinkFiles(ctx, 8125, []*model.File{{Key: "test.txt", Name: "test.txt"}}); err != nil {
if _, err := server.DB.AddFile(ctx, 8125, &model.File{Key: "test.txt", Name: "test.txt"}); err != nil {
log.Fatal(err)
}
}