Skip to content

Latest commit

 

History

History
53 lines (29 loc) · 1.85 KB

utilities_reuploadDuplicateCheck.md

File metadata and controls

53 lines (29 loc) · 1.85 KB

talawa-api / Exports / utilities/reuploadDuplicateCheck

Module: utilities/reuploadDuplicateCheck

Table of contents

Type Aliases

Functions

Type Aliases

TypeImagePath

Ƭ TypeImagePath: string | InterfaceUrlRequestObject | InterfaceBufferObject

Defined in

src/utilities/reuploadDuplicateCheck.ts:15

Functions

reuploadDuplicateCheck

reuploadDuplicateCheck(oldImagePath, newImagePath): Promise<boolean>

This function determines whether a user or an organisation is attempting to re-upload the same profile photo or organisation image.

Parameters

Name Type Description
oldImagePath null | TypeImagePath Path of a current Org/User image of type: TypeImagePath.
newImagePath TypeImagePath Path of a new image of type: TypeImagePath.

Returns

Promise<boolean>

If the identical image is trying to reuploaded, true; otherwise, false.

Remarks

This is a utility method.

Defined in

src/utilities/reuploadDuplicateCheck.ts:42