remove deprecated packages

This commit is contained in:
SowinskiBraeden committed 2022-08-14 21:59:33 -07:00
1 parent fdd5401b06
commit 79acbc377a
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ import (
"context" "context"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"io/ioutil"
"os" "os"
"strings" "strings"
"time" "time"
@@ -860,7 +859,7 @@ func UpdateStudentPhoto(c *fiber.Ctx) error {
} }
// Read the entire file into a byte slice // Read the entire file into a byte slice
bytes, err := ioutil.ReadFile(fmt.Sprintf("./database/images/%s", image)) bytes, err := os.ReadFile(fmt.Sprintf("./database/images/%s", image))
if err != nil { if err != nil {
cancel() cancel()
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{ return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{
+1 -2
View File
@@ -3,7 +3,6 @@ package update
import ( import (
"context" "context"
"fmt" "fmt"
"io/ioutil"
"os" "os"
"strings" "strings"
"time" "time"
@@ -422,7 +421,7 @@ func UpdateTeacherPhoto(c *fiber.Ctx) error {
} }
// Read the entire file into a byte slice // Read the entire file into a byte slice
bytes, err := ioutil.ReadFile(fmt.Sprintf("./database/images/%s", image)) bytes, err := os.ReadFile(fmt.Sprintf("./database/images/%s", image))
if err != nil { if err != nil {
cancel() cancel()
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{ return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{