mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 05:03:44 +02:00
fix: add userid to created availabilities
This commit is contained in:
parent
498e51cfc0
commit
57e8716913
1 changed files with 5 additions and 1 deletions
|
@ -41,6 +41,7 @@ class AvailabilityService {
|
|||
endTime.hour,
|
||||
endTime.minute,
|
||||
),
|
||||
userId: userId,
|
||||
);
|
||||
|
||||
await dataInterface.createAvailabilitiesForUser(
|
||||
|
@ -147,9 +148,12 @@ class AvailabilityService {
|
|||
|
||||
/// Creates a new template
|
||||
Future<void> createTemplate(AvailabilityTemplateModel template) async {
|
||||
var updatedTemplate = template.copyWith(
|
||||
userId: userId,
|
||||
);
|
||||
await dataInterface.createTemplateForUser(
|
||||
userId,
|
||||
template,
|
||||
updatedTemplate,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue