dce-mango
Version:
Harvard DCE's Non-relational DB Wrapper.
12 lines (10 loc) • 407 B
text/typescript
/**
* Given the name of a collection, returns the corresponding lock collection's name.
* @author Benedikt Arnarsson
* @param collectionName the collection whose lock collection we want to find.
* @returns the name of the corresponding lock collection.
*/
const getLockCollectionName = (collectionName: string): string => {
return `${collectionName}_locks`;
};
export default getLockCollectionName;