Skip to content

Commit

Permalink
Merge #232
Browse files Browse the repository at this point in the history
232: Add Date objects in the Key instantiation in the code samples r=brunoocasali a=brunoocasali

# Pull Request

## What does this PR do?
Related to #226 in this PR we changed the public API but forgot to change the samples

## PR checklist
Please check if your PR fulfills the following requirements:
- [ ] Does this PR fix an existing issue?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to MeiliSearch!


Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
  • Loading branch information
bors[bot] and brunoocasali authored Feb 2, 2022
2 parents 7c98ea5 + b02b9b1 commit 16b97de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ create_a_key_1: |-
Description = "Add documents: Products API key",
Actions = new string[] { "documents.add" },
Indexes = new string[] { "products" },
ExpiresAt = "2042-04-02T00:42:42Z"
ExpiresAt = DateTime.Parse("2042-04-02T00:42:42Z")
};
Key createdKey = await this.client.CreateKeyAsync(keyOptions);
update_a_key_1: |-
Expand All @@ -250,7 +250,7 @@ security_guide_create_key_1: |-
Description = "Search patient records key",
Actions = new string[] { "search" },
Indexes = new string[] { "patient_medical_records" },
ExpiresAt = "2023-01-01T00:00:00Z"
ExpiresAt = DateTime.Parse("2023-01-01T00:00:00Z")
};
Key createdKey = await this.client.CreateKeyAsync(keyOptions);
security_guide_list_keys_1: |-
Expand Down

0 comments on commit 16b97de

Please sign in to comment.