This commit is contained in:
2026-02-10 09:14:43 +03:30
parent 0c2923faac
commit 8a8adb0623
@@ -257,7 +257,7 @@ export class CouponService {
return prefix + '-' + result;
}
async generateCouponCode(restId: string){
async generateCouponCode(restId: string): Promise<{ code: string }> {
const restaurant = await this.restRepository.findOne({ id: restId });
if (!restaurant) {
throw new NotFoundException(RestMessage.NOT_FOUND);