⬆️ Use the latest version of paperclip

This commit is contained in:
2024-05-20 22:33:39 +08:00
parent c656dc184a
commit fe8c5d2821
3 changed files with 19 additions and 19 deletions

View File

@@ -19,9 +19,9 @@ func GetAttachmentByUUID(uuid string) (*pcpb.Attachment, error) {
})
}
func CheckAttachmentByUUIDExists(uuid string, usage string) bool {
func CheckAttachmentByIDExists(id uint, usage string) bool {
_, err := grpc.Attachments.CheckAttachmentExists(context.Background(), &pcpb.AttachmentLookupRequest{
Uuid: &uuid,
Id: lo.ToPtr(uint64(id)),
Usage: &usage,
})